Implement ALTER TABLE .. SET LOGGED / UNLOGGED
Alvaro Herrera <alvherre@alvh.no-ip.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/alter_table.sgml | modified | +38 −26 |
| src/backend/commands/cluster.c | modified | +27 −19 |
| src/backend/commands/matview.c | modified | +8 −1 |
| src/backend/commands/tablecmds.c | modified | +234 −5 |
| src/backend/parser/gram.y | modified | +16 −1 |
| src/bin/psql/tab-complete.c | modified | +2 −2 |
| src/include/commands/cluster.h | modified | +1 −1 |
| src/include/nodes/parsenodes.h | modified | +2 −0 |
| src/include/parser/kwlist.h | modified | +1 −0 |
| src/test/regress/expected/alter_table.out | modified | +91 −0 |
| src/test/regress/sql/alter_table.sql | modified | +52 −0 |