Movatterモバイル変換


[0]ホーム

URL:


Quick Links

Error for WITH options on partitioned tables

From:Simon Riggs <simon(dot)riggs(at)enterprisedb(dot)com>
To:PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject:Error for WITH options on partitioned tables
Date:2022-09-16 12:13:51
Message-ID:CANbhV-H=eZ9kTR9mUgKGK0Qv9uXP=U+dQg3rinQHfTdFMhBA2A@mail.gmail.com
Views:Whole Thread |Raw Message |Download mbox |Resend email
Thread:
Lists:pgsql-hackers

Someone on general list recently complained that the error message
from trying to use options on a partitioned table was misleading,
which it definitely is:

CREATE TABLE parted_col_comment (a int, b text) PARTITION BY LIST (a)
WITH (fillfactor=100);
ERROR: unrecognized parameter "fillfactor"

Which is verified by patch 001.

Patch 002 replaces this with a more meaningful error message, which
matches our fine manual.
https://www.postgresql.org/docs/current/sql-createtable.html

ERROR: cannot specify storage options for a partitioned table
HINT: specify storage options on leaf partitions instead

--
Simon Riggshttp://www.EnterpriseDB.com/

AttachmentContent-TypeSize
001_test_options_with_partitioned_table.v1.patchapplication/octet-stream1.3 KB
002_better_error_for_options_on_partitioned.v1.patchapplication/octet-stream1.4 KB

Responses

Browse pgsql-hackers by date

 FromDateSubject
Next MessageSimon Riggs2022-09-16 12:20:20Re: SUBTRANS: Minimizing calls to SubTransSetParent()
Previous MessageBharath Rupireddy2022-09-16 11:28:29Re: Switching XLog source from archive to streaming when primary available

[8]ページ先頭

©2009-2026 Movatter.jp