1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-07 19:06:32 +03:00

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.
This commit is contained in:
Tatsuo Ishii
2002-07-11 07:39:28 +00:00
parent f2bb1cfa85
commit fcc962566a
19 changed files with 610 additions and 44 deletions

View File

@@ -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 */