postgresql/src/backend/commands
Heikki Linnakangas fa3938fcb1 When a relation is moved to another tablespace, we can't assume that we can
use the old relfilenode in the new tablespace. There might be another relation
in the new tablespace with the same relfilenode, so we must generate a fresh
relfilenode in the new tablespace.

The 8.3 patch to let deleted relation files linger as zero-length files until
the next checkpoint made this more obvious: moving a relation from one table
space another, and then back again, caused a collision with the lingering
file.

Back-patch to 8.1. The issue is present in 8.0 as well, but it doesn't seem
worth fixing there, because we didn't have protection from OID collisions
after OID wraparound before 8.1.

Report by Guillaume Lelarge.
2008-10-07 11:15:41 +00:00
..
aggregatecmds.c ALTER AGGREGATE OWNER seems to have been missed by the last couple of 2008-06-08 21:09:48 +00:00
alter.c Rearrange ALTER TABLE syntax processing as per my recent proposal: the 2008-06-15 01:25:54 +00:00
analyze.c Move exprType(), exprTypmod(), expression_tree_walker(), and related routines 2008-08-25 22:42:34 +00:00
async.c Fix the raw-parsetree representation of star (as in SELECT * FROM or 2008-08-30 01:39:14 +00:00
cluster.c Improve our #include situation by moving pointer types away from the 2008-06-19 00:46:06 +00:00
comment.c Improve our #include situation by moving pointer types away from the 2008-06-19 00:46:06 +00:00
conversioncmds.c Improve our #include situation by moving pointer types away from the 2008-06-19 00:46:06 +00:00
copy.c Improve snapshot manager by keeping explicit track of snapshots. 2008-05-12 20:02:02 +00:00
dbcommands.c Rewrite the FSM. Instead of relying on a fixed-size shared memory segment, the 2008-09-30 10:52:14 +00:00
define.c Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
discard.c Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
explain.c Fix up ruleutils.c for CTE features. The main problem was that 2008-10-06 20:29:38 +00:00
functioncmds.c Implement SQL-spec RETURNS TABLE syntax for functions. 2008-07-18 03:32:53 +00:00
indexcmds.c Move exprType(), exprTypmod(), expression_tree_walker(), and related routines 2008-08-25 22:42:34 +00:00
lockcmds.c Create a separate grantable privilege for TRUNCATE, rather than having it be 2008-09-08 00:47:41 +00:00
Makefile Refactor backend makefiles to remove lots of duplicate code 2008-02-19 10:30:09 +00:00
opclasscmds.c Improve our #include situation by moving pointer types away from the 2008-06-19 00:46:06 +00:00
operatorcmds.c Clean up the loose ends in selectivity estimation left by my patch for semi 2008-08-16 00:01:38 +00:00
portalcmds.c Adjust things so that the query_string of a cached plan and the sourceText of 2008-07-18 20:26:06 +00:00
prepare.c Extend the parser location infrastructure to include a location field in 2008-08-28 23:09:48 +00:00
proclang.c Improve our #include situation by moving pointer types away from the 2008-06-19 00:46:06 +00:00
schemacmds.c Refactor the handling of the various DropStmt variants so that when multiple 2008-06-14 18:04:34 +00:00
sequence.c Clean up the use of some page-header-access macros: principally, use 2008-07-13 20:45:47 +00:00
tablecmds.c When a relation is moved to another tablespace, we can't assume that we can 2008-10-07 11:15:41 +00:00
tablespace.c Improve our #include situation by moving pointer types away from the 2008-06-19 00:46:06 +00:00
trigger.c Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
tsearchcmds.c Improve our #include situation by moving pointer types away from the 2008-06-19 00:46:06 +00:00
typecmds.c Establish the rule that array types should have the same typdelim as their 2008-09-25 03:28:56 +00:00
user.c Restructure some header files a bit, in particular heapam.h, by removing some 2008-05-12 00:00:54 +00:00
vacuum.c Rewrite the FSM. Instead of relying on a fixed-size shared memory segment, the 2008-09-30 10:52:14 +00:00
vacuumlazy.c Rewrite the FSM. Instead of relying on a fixed-size shared memory segment, the 2008-09-30 10:52:14 +00:00
variable.c Improve snapshot manager by keeping explicit track of snapshots. 2008-05-12 20:02:02 +00:00
view.c Move exprType(), exprTypmod(), expression_tree_walker(), and related routines 2008-08-25 22:42:34 +00:00