postgresql/src/backend
Alvaro Herrera 2b4f2ab33d Remove the correct pgstat file on DROP DATABASE
We were unlinking the permanent file, not the non-permanent one.  But
since the stat collector already unlinks all permanent files on startup,
there was nothing for it to unlink.  The non-permanent file remained in
place, and was copied to the permanent directory on shutdown, so in
effect no file was ever dropped.

Backpatch to 9.3, where the issue was introduced by commit 187492b6c2.
Before that, there were no per-database files and thus no file to drop
on DROP DATABASE.

Per report from Thom Brown.

Author: Tomáš Vondra
2014-03-05 13:03:29 -03:00
..
access Do wal_level and hot standby checks when doing crash-then-archive recovery. 2014-03-05 14:48:14 +02:00
bootstrap Avoid repeated name lookups during table and index DDL. 2014-02-17 09:33:31 -05:00
catalog Constructors for interval, timestamp, timestamptz 2014-03-04 15:09:43 -03:00
commands Provide a FORCE NULL option to COPY in CSV mode. 2014-03-04 17:31:59 -05:00
executor Introduce logical decoding. 2014-03-03 16:32:18 -05:00
foreign Update copyright for 2014 2014-01-07 16:05:30 -05:00
lib Update copyright for 2014 2014-01-07 16:05:30 -05:00
libpq Another round of Coverity fixes 2014-03-03 03:18:51 -05:00
main Fix possible crashes due to using elog/ereport too early in startup. 2014-01-11 16:36:07 -05:00
nodes Avoid repeated name lookups during table and index DDL. 2014-02-17 09:33:31 -05:00
optimizer Fix bogus handling of "postponed" lateral quals. 2014-01-30 14:51:16 -05:00
parser Provide a FORCE NULL option to COPY in CSV mode. 2014-03-04 17:31:59 -05:00
po Translation updates 2013-12-02 00:17:07 -05:00
port Rename huge_tlb_pages to huge_pages, and improve docs. 2014-03-03 20:52:48 +02:00
postmaster Remove the correct pgstat file on DROP DATABASE 2014-03-05 13:03:29 -03:00
regex Allow regex operations to be terminated early by query cancel requests. 2014-03-01 15:20:56 -05:00
replication Minor corrections to logical decoding patch. 2014-03-04 11:07:54 -05:00
rewrite Update copyright for 2014 2014-01-07 16:05:30 -05:00
snowball Prefer pg_any_to_server/pg_server_to_any over pg_do_encoding_conversion. 2014-02-23 16:59:05 -05:00
storage Introduce logical decoding. 2014-03-03 16:32:18 -05:00
tcop Introduce logical decoding. 2014-03-03 16:32:18 -05:00
tsearch Another round of Coverity fixes 2014-03-03 03:18:51 -05:00
utils Constructors for interval, timestamp, timestamptz 2014-03-04 15:09:43 -03:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile Get rid of use of dlltool in Mingw builds. 2014-02-11 12:56:20 -05:00
nls.mk Add libpgcommon to backend gettext source files 2013-10-19 13:49:05 -04:00