mirror of
https://github.com/postgres/postgres.git
synced 2025-10-18 04:29:09 +03:00
Support unlogged tables.
The contents of an unlogged table are WAL-logged; thus, they are not available on standby servers and are truncated whenever the database system enters recovery. Indexes on unlogged tables are also unlogged. Unlogged GiST indexes are not currently supported.
This commit is contained in:
@@ -538,8 +538,8 @@ static RangeVar *makeRangeVarFromAnyName(List *names, int position, core_yyscan_
|
||||
TO TRAILING TRANSACTION TREAT TRIGGER TRIM TRUE_P
|
||||
TRUNCATE TRUSTED TYPE_P
|
||||
|
||||
UNBOUNDED UNCOMMITTED UNENCRYPTED UNION UNIQUE UNKNOWN UNLISTEN UNTIL
|
||||
UPDATE USER USING
|
||||
UNBOUNDED UNCOMMITTED UNENCRYPTED UNION UNIQUE UNKNOWN UNLISTEN UNLOGGED
|
||||
UNTIL UPDATE USER USING
|
||||
|
||||
VACUUM VALID VALIDATOR VALUE_P VALUES VARCHAR VARIADIC VARYING
|
||||
VERBOSE VERSION_P VIEW VOLATILE
|
||||
@@ -2365,6 +2365,7 @@ OptTemp: TEMPORARY { $$ = RELPERSISTENCE_TEMP; }
|
||||
| LOCAL TEMP { $$ = RELPERSISTENCE_TEMP; }
|
||||
| GLOBAL TEMPORARY { $$ = RELPERSISTENCE_TEMP; }
|
||||
| GLOBAL TEMP { $$ = RELPERSISTENCE_TEMP; }
|
||||
| UNLOGGED { $$ = RELPERSISTENCE_UNLOGGED; }
|
||||
| /*EMPTY*/ { $$ = RELPERSISTENCE_PERMANENT; }
|
||||
;
|
||||
|
||||
@@ -7927,6 +7928,11 @@ OptTempTableName:
|
||||
$$ = $4;
|
||||
$$->relpersistence = RELPERSISTENCE_TEMP;
|
||||
}
|
||||
| UNLOGGED opt_table qualified_name
|
||||
{
|
||||
$$ = $3;
|
||||
$$->relpersistence = RELPERSISTENCE_UNLOGGED;
|
||||
}
|
||||
| TABLE qualified_name
|
||||
{
|
||||
$$ = $2;
|
||||
@@ -11395,6 +11401,7 @@ unreserved_keyword:
|
||||
| UNENCRYPTED
|
||||
| UNKNOWN
|
||||
| UNLISTEN
|
||||
| UNLOGGED
|
||||
| UNTIL
|
||||
| UPDATE
|
||||
| VACUUM
|
||||
|
Reference in New Issue
Block a user