mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
pg_type has a typnamespace column; system now supports creating types
in different namespaces. Also, cleanup work on relation namespace support: drop, alter, rename commands work for tables in non-default namespaces.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/makefuncs.c,v 1.29 2002/03/22 02:56:32 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/makefuncs.c,v 1.30 2002/03/29 19:06:09 tgl Exp $
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
@ -209,3 +209,17 @@ makeRangeVar(char *schemaname, char *relname)
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
/*
|
||||
* makeTypeName -
|
||||
* build a TypeName node for an unqualified name.
|
||||
*/
|
||||
TypeName *
|
||||
makeTypeName(char *typnam)
|
||||
{
|
||||
TypeName *n = makeNode(TypeName);
|
||||
|
||||
n->names = makeList1(makeString(typnam));
|
||||
n->typmod = -1;
|
||||
return n;
|
||||
}
|
||||
|
Reference in New Issue
Block a user