Thread: pgsql-server/src/bin/pg_dump pg_dump.c

pgsql-server/src/bin/pg_dump pg_dump.c

From
momjian@postgresql.org (Bruce Momjian - CVS)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    momjian@postgresql.org    03/03/20 02:05:21

Modified files:
    src/bin/pg_dump: pg_dump.c

Log message:
    At present, dates are put into a dump in the format specified by the
    default datestyle.  This is not portable between installations.

    This patch sets DATESTYLE to ISO at the start of a pg_dump, so that the
    dates written into the dump will be restorable onto any database,
    regardless of how its default datestyle is set.

    Oliver Elphick