Report a more useful error for reloptions on a partitioned table.
Tom Lane <tgl@sss.pgh.pa.us>
Report a more useful error for reloptions on a partitioned table. Previously, trying to set storage parameters on a partitioned table always led to "unrecognized parameter foo", because the code expected there might be some valid parameters; but there aren't any. The docs make clear that it's intended that there never will be any, so let's replace this useless search with a more to-the-point message. Simon Riggs and Karina Litskevich Discussion: https://postgr.es/m/CANbhV-H=eZ9kTR9mUgKGK0Qv9uXP=U+dQg3rinQHfTdFMhBA2A@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/reloptions.c | modified | +6 −7 |
| src/test/regress/expected/alter_table.out | modified | +4 −0 |
| src/test/regress/expected/create_table.out | modified | +4 −0 |
| src/test/regress/sql/alter_table.sql | modified | +3 −0 |
| src/test/regress/sql/create_table.sql | modified | +3 −0 |
Discussion
- Error for WITH options on partitioned tables 9 messages · 2022-09-16 → 2022-11-09