Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0d3c767

Browse files
committed
Dump/display 'timestamp' as 'timestamp with time zone', to make room for a
future 'timestamp without time zone', which SQL claims is equivalent to plain 'timestamp'.
1 parent ab29852 commit 0d3c767

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/utils/adt/format_type.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/format_type.c,v 1.8 2001/01/24 19:43:13 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/format_type.c,v 1.9 2001/02/05 17:35:04 petere Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -175,6 +175,10 @@ format_type_internal(Oid type_oid, int32 typemod)
175175
buf = pstrdup("time with time zone");
176176
break;
177177

178+
case TIMESTAMPOID:
179+
buf = pstrdup("timestamp with time zone");
180+
break;
181+
178182
case VARBITOID:
179183
if (with_typemod)
180184
buf = psnprintf(13 + MAX_INT32_LEN + 1, "bit varying(%d)",

0 commit comments

Comments
 (0)