Get rid of postgres.c's separate parsing logic for PGDATESTYLE env.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f46571165d0d0e82b36e1f4ca2a10efb7255e3e6
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2000-02-19T22:10:47Z
Releases: 7.1.1
Get rid of postgres.c's separate parsing logic for PGDATESTYLE env.
variable, instead calling same code in variable.c that is used to parse
SET DATESTYLE.  Fix bug: although backend's startup datestyle had been
changed to ISO, 'RESET DATESTYLE' and 'SET DATESTYLE TO DEFAULT' didn't
know about it.  For consistency I have made the latter two reset to the
PGDATESTYLE-defined initial value, which may not be the same as the
compiled-in default of ISO.

Files

PathChange+/−
src/backend/commands/variable.c modified +165 −116
src/backend/tcop/postgres.c modified +5 −27
src/include/commands/variable.h modified +5 −21