Skip to content

Commit f353f8e

Browse files
committed
There is no reason to cast valuntil to timestamp, and a very good
reason not to: it fails for an 'invalid' abstime. Per bug report of today's date.
1 parent a5e804d commit f353f8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/pg_dump/pg_dumpall.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
88
*
9-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.23 2003/07/23 08:47:30 petere Exp $
9+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.24 2003/07/29 14:17:37 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -279,13 +279,13 @@ dumpUsers(PGconn *conn)
279279
if (server_version >= 70100)
280280
res = executeQuery(conn,
281281
"SELECT usename, usesysid, passwd, usecreatedb, "
282-
"usesuper, CAST(valuntil AS timestamp) "
282+
"usesuper, valuntil "
283283
"FROM pg_shadow "
284284
"WHERE usesysid <> (SELECT datdba FROM pg_database WHERE datname = 'template0')");
285285
else
286286
res = executeQuery(conn,
287287
"SELECT usename, usesysid, passwd, usecreatedb, "
288-
"usesuper, CAST(valuntil AS timestamp) "
288+
"usesuper, valuntil "
289289
"FROM pg_shadow "
290290
"WHERE usesysid <> (SELECT datdba FROM pg_database WHERE datname = 'template1')");
291291

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy