Re: Is the member name of hashctl inappropriate?

2023-09-13 Thread ywgrit
You are right, I came to this erroneous conclusion based on the following mishandled experiment: My test program is shown below. typedef struct ColumnIdentifier { Oidrelid; AttrNumber resno; } ColumnIdentifier; typedef struct ColumnType { ColumnIdentifier colId;

Re: Is the member name of hashctl inappropriate?

2023-09-12 Thread Tom Lane
ywgrit writes: > According to the description, the keycopy function only copies the key, but > in reality it copies the entire entry, i.e., the key and the value, On what grounds do you claim that? dynahash.c only ever passes "keysize" as the size parameter. regards,

Is the member name of hashctl inappropriate?

2023-09-12 Thread ywgrit
The definition of hashctl is shown below typedef struct HASHCTL { long num_partitions; /* # partitions (must be power of 2) */ long ssize; /* segment size */ long dsize; /* (initial) directory size */ long