postgresql/src
Tom Lane 0d9819f7e3 Measure epoch of timestamp-without-time-zone from local not UTC midnight.
This patch reverts commit 191ef2b407
and thereby restores the pre-7.3 behavior of EXTRACT(EPOCH FROM
timestamp-without-tz).  Per discussion, the more recent behavior was
misguided on a couple of grounds: it makes it hard to get a
non-timezone-aware epoch value for a timestamp, and it makes this one
case dependent on the value of the timezone GUC, which is incompatible
with having timestamp_part() labeled as immutable.

The other behavior is still available (in all releases) by explicitly
casting the timestamp to timestamp with time zone before applying EXTRACT.

This will need to be called out as an incompatible change in the 9.2
release notes.  Although having mutable behavior in a function marked
immutable is clearly a bug, we're not going to back-patch such a change.
2012-04-10 12:04:42 -04:00
..
backend Measure epoch of timestamp-without-time-zone from local not UTC midnight. 2012-04-10 12:04:42 -04:00
bin Allow statistics to be collected for foreign tables. 2012-04-06 15:02:35 -04:00
include Do stack-depth checking in all postmaster children. 2012-04-08 19:07:55 +03:00
interfaces Stamp libraries versions for 9.2 (better late than never). 2012-04-07 16:19:43 -04:00
makefiles pgxs: Supply default values for BISON and FLEX variables 2012-03-30 20:36:49 +03:00
pl Fix plpgsql named-cursor-parameter feature for variable name conflicts. 2012-04-04 21:50:31 -04:00
port Remove now redundant pgpipe code. 2012-03-28 23:24:07 -04:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Allow statistics to be collected for foreign tables. 2012-04-06 15:02:35 -04:00
timezone Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
tools Remove now redundant pgpipe code. 2012-03-28 23:24:07 -04:00
tutorial Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in ecpg: Improve test building 2012-02-02 20:33:29 +02:00
Makefile.shlib Use single quotes in preference to double quotes for protecting pathnames. 2011-06-15 21:45:23 -04:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
nls-global.mk NLS: Use msgmerge/xgettext --no-wrap and --sort-by-file 2012-04-05 22:28:13 +03:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00