Implement ALTER TABLE .. SET LOGGED / UNLOGGED
This enables changing permanent (logged) tables to unlogged and vice-versa. (Docs for ALTER TABLE / SET TABLESPACE got shuffled in an order that hopefully makes more sense than the original.) Author: Fabrízio de Royes Mello Reviewed by: Christoph Berg, Andres Freund, Thom Brown Some tweaking by Álvaro Herrera
Showing
- doc/src/sgml/ref/alter_table.sgml 38 additions, 26 deletionsdoc/src/sgml/ref/alter_table.sgml
- src/backend/commands/cluster.c 27 additions, 19 deletionssrc/backend/commands/cluster.c
- src/backend/commands/matview.c 8 additions, 1 deletionsrc/backend/commands/matview.c
- src/backend/commands/tablecmds.c 234 additions, 5 deletionssrc/backend/commands/tablecmds.c
- src/backend/parser/gram.y 16 additions, 1 deletionsrc/backend/parser/gram.y
- src/bin/psql/tab-complete.c 2 additions, 2 deletionssrc/bin/psql/tab-complete.c
- src/include/commands/cluster.h 1 addition, 1 deletionsrc/include/commands/cluster.h
- src/include/nodes/parsenodes.h 2 additions, 0 deletionssrc/include/nodes/parsenodes.h
- src/include/parser/kwlist.h 1 addition, 0 deletionssrc/include/parser/kwlist.h
- src/test/regress/expected/alter_table.out 91 additions, 0 deletionssrc/test/regress/expected/alter_table.out
- src/test/regress/sql/alter_table.sql 52 additions, 0 deletionssrc/test/regress/sql/alter_table.sql
Loading
Please register or sign in to comment