Re: add function for creating/attaching hash table in DSM registry - Mailing list pgsql-hackers

From Dagfinn Ilmari Mannsåker
Subject Re: add function for creating/attaching hash table in DSM registry
Date
Msg-id 87ecvywhyl.fsf@wibble.ilmari.org
Whole thread Raw
In response to add function for creating/attaching hash table in DSM registry  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: add function for creating/attaching hash table in DSM registry
List pgsql-hackers
Nathan Bossart <nathandbossart@gmail.com> writes:

> +typedef struct NamedDSMHashState
> +{
> +    dsa_handle    dsah;
> +    dshash_table_handle dshh;
> +    int            dsa_tranche;
> +    char        dsa_tranche_name[68];    /* name + "_dsa" */
> +    int            dsh_tranche;
> +    char        dsh_tranche_name[68];    /* name + "_dsh" */
> +} NamedDSMHashState;

I don't have enough knowledge to review the rest of the patch, but
shouldn't this use NAMEDATALEN, rather than hard-coding the default
length?

- ilmari



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Possibly hard-to-read message
Next
From: Pavel Stehule
Date:
Subject: Re: pg18: Virtual generated columns are not (yet) safe when superuser selects from them