mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Remove TypeName struct's timezone flag, which has been write-only storage
for a very long time --- in current usage it's entirely redundant with the name field.
This commit is contained in:
@ -15,7 +15,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.389 2008/03/20 21:42:47 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.390 2008/03/21 22:41:48 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1714,7 +1714,6 @@ _copyTypeName(TypeName *from)
|
|||||||
|
|
||||||
COPY_NODE_FIELD(names);
|
COPY_NODE_FIELD(names);
|
||||||
COPY_SCALAR_FIELD(typeid);
|
COPY_SCALAR_FIELD(typeid);
|
||||||
COPY_SCALAR_FIELD(timezone);
|
|
||||||
COPY_SCALAR_FIELD(setof);
|
COPY_SCALAR_FIELD(setof);
|
||||||
COPY_SCALAR_FIELD(pct_type);
|
COPY_SCALAR_FIELD(pct_type);
|
||||||
COPY_NODE_FIELD(typmods);
|
COPY_NODE_FIELD(typmods);
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/nodes/equalfuncs.c,v 1.319 2008/03/20 21:42:48 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/nodes/equalfuncs.c,v 1.320 2008/03/21 22:41:48 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1753,7 +1753,6 @@ _equalTypeName(TypeName *a, TypeName *b)
|
|||||||
{
|
{
|
||||||
COMPARE_NODE_FIELD(names);
|
COMPARE_NODE_FIELD(names);
|
||||||
COMPARE_SCALAR_FIELD(typeid);
|
COMPARE_SCALAR_FIELD(typeid);
|
||||||
COMPARE_SCALAR_FIELD(timezone);
|
|
||||||
COMPARE_SCALAR_FIELD(setof);
|
COMPARE_SCALAR_FIELD(setof);
|
||||||
COMPARE_SCALAR_FIELD(pct_type);
|
COMPARE_SCALAR_FIELD(pct_type);
|
||||||
COMPARE_NODE_FIELD(typmods);
|
COMPARE_NODE_FIELD(typmods);
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.323 2008/03/20 21:42:48 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.324 2008/03/21 22:41:48 tgl Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* Every node type that can appear in stored rules' parsetrees *must*
|
* Every node type that can appear in stored rules' parsetrees *must*
|
||||||
@ -1668,7 +1668,6 @@ _outTypeName(StringInfo str, TypeName *node)
|
|||||||
|
|
||||||
WRITE_NODE_FIELD(names);
|
WRITE_NODE_FIELD(names);
|
||||||
WRITE_OID_FIELD(typeid);
|
WRITE_OID_FIELD(typeid);
|
||||||
WRITE_BOOL_FIELD(timezone);
|
|
||||||
WRITE_BOOL_FIELD(setof);
|
WRITE_BOOL_FIELD(setof);
|
||||||
WRITE_BOOL_FIELD(pct_type);
|
WRITE_BOOL_FIELD(pct_type);
|
||||||
WRITE_NODE_FIELD(typmods);
|
WRITE_NODE_FIELD(typmods);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.609 2008/03/20 21:42:48 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.610 2008/03/21 22:41:48 tgl Exp $
|
||||||
*
|
*
|
||||||
* HISTORY
|
* HISTORY
|
||||||
* AUTHOR DATE MAJOR EVENT
|
* AUTHOR DATE MAJOR EVENT
|
||||||
@ -7198,10 +7198,6 @@ ConstDatetime:
|
|||||||
$$ = SystemTypeName("timestamptz");
|
$$ = SystemTypeName("timestamptz");
|
||||||
else
|
else
|
||||||
$$ = SystemTypeName("timestamp");
|
$$ = SystemTypeName("timestamp");
|
||||||
/* XXX the timezone field seems to be unused
|
|
||||||
* - thomas 2001-09-06
|
|
||||||
*/
|
|
||||||
$$->timezone = $5;
|
|
||||||
$$->typmods = list_make1(makeIntConst($3));
|
$$->typmods = list_make1(makeIntConst($3));
|
||||||
$$->location = @1;
|
$$->location = @1;
|
||||||
}
|
}
|
||||||
@ -7211,10 +7207,6 @@ ConstDatetime:
|
|||||||
$$ = SystemTypeName("timestamptz");
|
$$ = SystemTypeName("timestamptz");
|
||||||
else
|
else
|
||||||
$$ = SystemTypeName("timestamp");
|
$$ = SystemTypeName("timestamp");
|
||||||
/* XXX the timezone field seems to be unused
|
|
||||||
* - thomas 2001-09-06
|
|
||||||
*/
|
|
||||||
$$->timezone = $2;
|
|
||||||
$$->location = @1;
|
$$->location = @1;
|
||||||
}
|
}
|
||||||
| TIME '(' Iconst ')' opt_timezone
|
| TIME '(' Iconst ')' opt_timezone
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.360 2008/03/20 21:42:48 tgl Exp $
|
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.361 2008/03/21 22:41:48 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -165,7 +165,6 @@ typedef struct TypeName
|
|||||||
NodeTag type;
|
NodeTag type;
|
||||||
List *names; /* qualified name (list of Value strings) */
|
List *names; /* qualified name (list of Value strings) */
|
||||||
Oid typeid; /* type identified by OID */
|
Oid typeid; /* type identified by OID */
|
||||||
bool timezone; /* timezone specified? */
|
|
||||||
bool setof; /* is a set? */
|
bool setof; /* is a set? */
|
||||||
bool pct_type; /* %TYPE specified? */
|
bool pct_type; /* %TYPE specified? */
|
||||||
List *typmods; /* type modifier expression(s) */
|
List *typmods; /* type modifier expression(s) */
|
||||||
|
Reference in New Issue
Block a user