-
- Downloads
Fix CreatePolicy, pg_dump -v; psql and doc updates
Peter G pointed out that valgrind was, rightfully, complaining about CreatePolicy() ending up copying beyond the end of the parsed policy name. Name is a fixed-size type and we need to use namein (through DirectFunctionCall1()) to flush out the entire array before we pass it down to heap_form_tuple. Michael Paquier pointed out that pg_dump --verbose was missing a newline and Fabrízio de Royes Mello further pointed out that the schema was also missing from the messages, so fix those also. Also, based on an off-list comment from Kevin, rework the psql \d output to facilitate copy/pasting into a new CREATE or ALTER POLICY command. Lastly, improve the pg_policies view and update the documentation for it, along with a few other minor doc corrections based on an off-list discussion with Adam Brightwell.
Showing
- doc/src/sgml/catalogs.sgml 89 additions, 2 deletionsdoc/src/sgml/catalogs.sgml
- src/backend/catalog/system_views.sql 6 additions, 4 deletionssrc/backend/catalog/system_views.sql
- src/backend/commands/policy.c 1 addition, 1 deletionsrc/backend/commands/policy.c
- src/bin/pg_dump/pg_dump.c 4 additions, 2 deletionssrc/bin/pg_dump/pg_dump.c
- src/bin/psql/describe.c 16 additions, 12 deletionssrc/bin/psql/describe.c
- src/test/regress/expected/rules.out 6 additions, 6 deletionssrc/test/regress/expected/rules.out
Loading
Please register or sign in to comment