mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Create 'default_tablespace' GUC variable that supplies a TABLESPACE
clause implicitly whenever one is not given explicitly. Remove concept of a schema having an associated tablespace, and simplify the rules for selecting a default tablespace for a table or index. It's now just (a) explicit TABLESPACE clause; (b) default_tablespace if that's not an empty string; (c) database's default. This will allow pg_dump to use SET commands instead of tablespace clauses to determine object locations (but I didn't actually make it do so). All per recent discussions.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.299 2004/11/01 13:17:12 davec Exp $ */
|
||||
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.300 2004/11/05 19:16:43 tgl Exp $ */
|
||||
|
||||
/* Copyright comment */
|
||||
%{
|
||||
@@ -1013,10 +1013,10 @@ DropGroupStmt: DROP GROUP_P UserId
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
CreateSchemaStmt: CREATE SCHEMA OptSchemaName AUTHORIZATION UserId OptTableSpace OptSchemaEltList
|
||||
{ $$ = cat_str(6, make_str("create schema"), $3, make_str("authorization"), $5, $6, $7); }
|
||||
| CREATE SCHEMA ColId OptTableSpace OptSchemaEltList
|
||||
{ $$ = cat_str(4, make_str("create schema"), $3, $4, $5); }
|
||||
CreateSchemaStmt: CREATE SCHEMA OptSchemaName AUTHORIZATION UserId OptSchemaEltList
|
||||
{ $$ = cat_str(5, make_str("create schema"), $3, make_str("authorization"), $5, $6); }
|
||||
| CREATE SCHEMA ColId OptSchemaEltList
|
||||
{ $$ = cat_str(3, make_str("create schema"), $3, $4); }
|
||||
;
|
||||
|
||||
OptSchemaName: ColId { $$ = $1; }
|
||||
|
Reference in New Issue
Block a user