Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf353f8e

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 reportof today's date.
1 parenta5e804d commitf353f8e

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)

[8]ページ先頭

©2009-2025 Movatter.jp