diff options
| author | Tatsuo Ishii | 2002-07-11 07:39:28 +0000 |
|---|---|---|
| committer | Tatsuo Ishii | 2002-07-11 07:39:28 +0000 |
| commit | fcc962566a7cf0461778c97ef713fa4855303dfe (patch) | |
| tree | 507fb3d31a7cba6a6258b40ec5c9364f3ec9a3a6 /src/include/nodes | |
| parent | f2bb1cfa85eba18b185c8883a8da6077f7888ec2 (diff) | |
Add new CREATE CONVERSION/DROP CONVERSION command.
This is the first cut toward CREATE CONVERSION/DROP CONVERSION implementaion.
The commands can now add/remove tuples to the new pg_conversion system
catalog, but that's all. Still need work to make them actually working.
Documentations, regression tests also need work.
Diffstat (limited to 'src/include/nodes')
| -rw-r--r-- | src/include/nodes/nodes.h | 3 | ||||
| -rw-r--r-- | src/include/nodes/parsenodes.h | 17 |
2 files changed, 18 insertions, 2 deletions
diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h index 815a9ea861..a2980a1ff2 100644 --- a/src/include/nodes/nodes.h +++ b/src/include/nodes/nodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: nodes.h,v 1.109 2002/06/20 20:29:51 momjian Exp $ + * $Id: nodes.h,v 1.110 2002/07/11 07:39:27 ishii Exp $ * *------------------------------------------------------------------------- */ @@ -198,6 +198,7 @@ typedef enum NodeTag T_CreateSchemaStmt, T_AlterDatabaseSetStmt, T_AlterUserSetStmt, + T_CreateConversionStmt, T_A_Expr = 700, T_ColumnRef, diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index ce914c5cd0..19693d57b3 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.183 2002/07/01 15:27:56 tgl Exp $ + * $Id: parsenodes.h,v 1.184 2002/07/11 07:39:27 ishii Exp $ * *------------------------------------------------------------------------- */ @@ -1109,6 +1109,7 @@ typedef struct CreateDomainStmt #define DROP_INDEX 4 #define DROP_TYPE 5 #define DROP_DOMAIN 6 +#define DROP_CONVERSION 7 typedef struct DropStmt { @@ -1505,4 +1506,18 @@ typedef struct ReindexStmt bool all; } ReindexStmt; +/* ---------------------- + * CREATE CONVERSION Statement + * ---------------------- + */ +typedef struct CreateConversionStmt +{ + NodeTag type; + List *conversion_name; /* Name of the conversion */ + char *for_encoding_name; /* source encoding name */ + char *to_encoding_name; /* destiname encoding name */ + List *func_name; /* qualified conversion function name */ + bool def; /* is this a default conversion? */ +} CreateConversionStmt; + #endif /* PARSENODES_H */ |
