mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Implement comparison of generic records (composite types), and invent a
pseudo-type record[] to represent arrays of possibly-anonymous composite types. Since composite datums carry their own type identification, no extra knowledge is needed at the array level. The main reason for doing this right now is that it is necessary to support the general case of detection of cycles in recursive queries: if you need to compare more than one column to detect a cycle, you need to compare a ROW() to an array built from ROW()s, at least if you want to do it as the spec suggests. Add some documentation and regression tests concerning the cycle detection issue.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.323 2008/10/06 20:29:38 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.324 2008/10/13 16:25:20 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -524,6 +524,13 @@ extern Datum record_in(PG_FUNCTION_ARGS);
|
||||
extern Datum record_out(PG_FUNCTION_ARGS);
|
||||
extern Datum record_recv(PG_FUNCTION_ARGS);
|
||||
extern Datum record_send(PG_FUNCTION_ARGS);
|
||||
extern Datum record_eq(PG_FUNCTION_ARGS);
|
||||
extern Datum record_ne(PG_FUNCTION_ARGS);
|
||||
extern Datum record_lt(PG_FUNCTION_ARGS);
|
||||
extern Datum record_gt(PG_FUNCTION_ARGS);
|
||||
extern Datum record_le(PG_FUNCTION_ARGS);
|
||||
extern Datum record_ge(PG_FUNCTION_ARGS);
|
||||
extern Datum btrecordcmp(PG_FUNCTION_ARGS);
|
||||
|
||||
/* ruleutils.c */
|
||||
extern Datum pg_get_ruledef(PG_FUNCTION_ARGS);
|
||||
|
Reference in New Issue
Block a user