mirror of
https://github.com/postgres/postgres.git
synced 2025-12-15 02:22:24 +03:00
First phase of work on array improvements. ARRAY[x,y,z] constructor
expressions, ARRAY(sub-SELECT) expressions, some array functions. Polymorphic functions using ANYARRAY/ANYELEMENT argument and return types. Some regression tests in place, documentation is lacking. Joe Conway, with some kibitzing from Tom Lane.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: lsyscache.h,v 1.67 2003/02/03 21:15:45 tgl Exp $
|
||||
* $Id: lsyscache.h,v 1.68 2003/04/08 23:20:04 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -58,6 +58,8 @@ extern int32 get_typtypmod(Oid typid);
|
||||
extern Node *get_typdefault(Oid typid);
|
||||
extern char get_typtype(Oid typid);
|
||||
extern Oid get_typ_typrelid(Oid typid);
|
||||
extern Oid get_element_type(Oid typid);
|
||||
extern Oid get_array_type(Oid typid);
|
||||
extern void getTypeInputInfo(Oid type, Oid *typInput, Oid *typElem);
|
||||
extern bool getTypeOutputInfo(Oid type, Oid *typOutput, Oid *typElem,
|
||||
bool *typIsVarlena);
|
||||
@@ -75,6 +77,8 @@ extern void free_attstatsslot(Oid atttype,
|
||||
extern char *get_namespace_name(Oid nspid);
|
||||
extern int32 get_usesysid(const char *username);
|
||||
|
||||
#define is_array_type(typid) (get_element_type(typid) != InvalidOid)
|
||||
|
||||
#define TypeIsToastable(typid) (get_typstorage(typid) != 'p')
|
||||
|
||||
#endif /* LSYSCACHE_H */
|
||||
|
||||
Reference in New Issue
Block a user