Re: BUG #16940: ERROR: unrecognized parameter - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #16940: ERROR: unrecognized parameter
Date
Msg-id YFqLOjd/RQyeNKkU@paquier.xyz
Whole thread Raw
In response to Re: BUG #16940: ERROR: unrecognized parameter  (Guillaume Lelarge <guillaume@lelarge.info>)
List pgsql-bugs
On Tue, Mar 23, 2021 at 04:26:41PM +0100, Guillaume Lelarge wrote:
> You can't use storage parameters on partitioned tables, as the fine docs
> say: "Specifying these parameters for partitioned tables is not supported,
> but you may specify them for individual leaf partitions." See
> https://www.postgresql.org/docs/13/sql-createtable.html#SQL-CREATETABLE-STORAGE-PARAMETERS

Partitioned tables have no relation options.  As of reloptions.c:
bytea *
partitioned_table_reloptions(Datum reloptions, bool validate)
{
    /*
     * There are no options for partitioned tables yet, but this is able to do
     * some validation.
     */
   return (bytea *) build_reloptions(reloptions, validate,
                                     RELOPT_KIND_PARTITIONED,
                                     0, NULL, 0);
}
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #16927: Postgres can`t access WAL files
Next
From: Fujii Masao
Date:
Subject: Re: BUG #16722: PG hanging on COPY when table has close to 2^32 toasts in the table.