postgresql/src/backend/commands
Tom Lane a192d5d05d Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPACE.
The previous coding assumed that we could just let buffers for the
database's old tablespace age out of the buffer arena naturally.
The folly of that is exposed by bug #11867 from Marc Munro: the user could
later move the database back to its original tablespace, after which any
still-surviving buffers would match lookups again and appear to contain
valid data.  But they'd be missing any changes applied while the database
was in the new tablespace.

This has been broken since ALTER SET TABLESPACE was introduced, so
back-patch to all supported branches.
2014-11-04 13:24:10 -05:00
..
aggregatecmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
alter.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
analyze.c Test IsInTransactionChain, not IsTransactionBlock, in vac_update_relstats. 2014-10-30 13:04:13 -04:00
async.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
cluster.c Don't allow relminmxid to go backwards during VACUUM FULL 2014-06-27 14:43:46 -04:00
collationcmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
comment.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
constraint.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
conversioncmds.c Make various variables const (read-only). 2014-01-18 16:04:32 -05:00
copy.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
createas.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
dbcommands.c Drop no-longer-needed buffers during ALTER DATABASE SET TABLESPACE. 2014-11-04 13:24:10 -05:00
define.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
discard.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dropcmds.c Make DROP IF EXISTS more consistently not fail 2014-01-23 14:40:29 -03:00
event_trigger.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
explain.c Print planning time only in EXPLAIN ANALYZE, not plain EXPLAIN. 2014-10-15 18:50:16 -04:00
extension.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
foreigncmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
functioncmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
indexcmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
lockcmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
Makefile Add a materialized view relations. 2013-03-03 18:23:31 -06:00
matview.c Message improvements 2014-10-12 01:02:56 -04:00
opclasscmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
operatorcmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
portalcmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
prepare.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
proclang.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
schemacmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
seclabel.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
sequence.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
tablecmds.c Message improvements 2014-10-12 01:02:56 -04:00
tablespace.c Rework 'MOVE ALL' to 'ALTER .. ALL IN TABLESPACE' 2014-08-21 19:12:00 -04:00
trigger.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
tsearchcmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
typecmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
user.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
vacuum.c Test IsInTransactionChain, not IsTransactionBlock, in vac_update_relstats. 2014-10-30 13:04:13 -04:00
vacuumlazy.c Test IsInTransactionChain, not IsTransactionBlock, in vac_update_relstats. 2014-10-30 13:04:13 -04:00
variable.c Reject out-of-range numeric timezone specifications. 2014-07-21 22:41:23 -04:00
view.c Message improvements 2014-10-12 01:02:56 -04:00