mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +03:00
Support ALTER TABLESPACE name SET/RESET ( tablespace_options ).
This patch only supports seq_page_cost and random_page_cost as parameters, but it provides the infrastructure to scalably support many more. In particular, we may want to add support for effective_io_concurrency, but I'm leaving that as future work for now. Thanks to Tom Lane for design help and Alvaro Herrera for the review.
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.701 2010/01/02 16:57:48 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.702 2010/01/05 21:53:58 rhaas Exp $
|
||||
*
|
||||
* HISTORY
|
||||
* AUTHOR DATE MAJOR EVENT
|
||||
@ -5687,6 +5687,24 @@ RenameStmt: ALTER AGGREGATE func_name aggr_args RENAME TO name
|
||||
n->newname = $6;
|
||||
$$ = (Node *)n;
|
||||
}
|
||||
| ALTER TABLESPACE name SET reloptions
|
||||
{
|
||||
AlterTableSpaceOptionsStmt *n =
|
||||
makeNode(AlterTableSpaceOptionsStmt);
|
||||
n->tablespacename = $3;
|
||||
n->options = $5;
|
||||
n->isReset = FALSE;
|
||||
$$ = (Node *)n;
|
||||
}
|
||||
| ALTER TABLESPACE name RESET reloptions
|
||||
{
|
||||
AlterTableSpaceOptionsStmt *n =
|
||||
makeNode(AlterTableSpaceOptionsStmt);
|
||||
n->tablespacename = $3;
|
||||
n->options = $5;
|
||||
n->isReset = TRUE;
|
||||
$$ = (Node *)n;
|
||||
}
|
||||
| ALTER TEXT_P SEARCH PARSER any_name RENAME TO name
|
||||
{
|
||||
RenameStmt *n = makeNode(RenameStmt);
|
||||
|
Reference in New Issue
Block a user