postgresql/src/backend/commands
Tom Lane ef07221997 Clean up smgr.c/md.c APIs as per discussion a couple months ago. Instead of
having md.c return a success/failure boolean to smgr.c, which was just going
to elog anyway, let md.c issue the elog messages itself.  This allows better
error reporting, particularly in cases such as "short read" or "short write"
which Peter was complaining of.  Also, remove the kluge of allowing mdread()
to return zeroes from a read-beyond-EOF: this is now an error condition
except when InRecovery or zero_damaged_pages = true.  (Hash indexes used to
require that behavior, but no more.)  Also, enforce that mdwrite() is to be
used for rewriting existing blocks while mdextend() is to be used for
extending the relation EOF.  This restriction lets us get rid of the old
ad-hoc defense against creating huge files by an accidental reference to
a bogus block number: we'll only create new segments in mdextend() not
mdwrite() or mdread().  (Again, when InRecovery we allow it anyway, since
we need to allow updates of blocks that were later truncated away.)
Also, clean up the original makeshift patch for bug #2737: move the
responsibility for padding relation segments to full length into md.c.
2007-01-03 18:11:01 +00:00
..
Makefile Tablespaces. Alternate database locations are dead, long live tablespaces. 2004-06-18 06:14:31 +00:00
aggregatecmds.c pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
alter.c Remove 576 references of include files that were not needed. 2006-07-14 14:52:27 +00:00
analyze.c Fix recently-understood problems with handling of XID freezing, particularly 2006-11-05 22:42:10 +00:00
async.c Remove 576 references of include files that were not needed. 2006-07-14 14:52:27 +00:00
cluster.c pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
comment.c Fix some typos in comments. 2006-11-12 06:55:54 +00:00
conversioncmds.c Remove 576 references of include files that were not needed. 2006-07-14 14:52:27 +00:00
copy.c Message style improvements 2006-10-06 17:14:01 +00:00
dbcommands.c Fix recently-understood problems with handling of XID freezing, particularly 2006-11-05 22:42:10 +00:00
define.c Message style improvements 2006-10-06 17:14:01 +00:00
explain.c pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
functioncmds.c Message style improvements 2006-10-06 17:14:01 +00:00
indexcmds.c Restructure operator classes to allow improved handling of cross-data-type 2006-12-23 00:43:13 +00:00
lockcmds.c Now that we've rearranged relation open to get a lock before touching 2006-08-18 16:09:13 +00:00
opclasscmds.c Restructure operator classes to allow improved handling of cross-data-type 2006-12-23 00:43:13 +00:00
operatorcmds.c Restructure operator classes to allow improved handling of cross-data-type 2006-12-23 00:43:13 +00:00
portalcmds.c Fix a couple of places that were assuming debug_query_string couldn't 2006-10-19 19:53:03 +00:00
prepare.c pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
proclang.c pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
schemacmds.c Allow include files to compile own their own. 2006-07-13 16:49:20 +00:00
sequence.c Message style improvements 2006-10-06 17:14:01 +00:00
tablecmds.c Clean up smgr.c/md.c APIs as per discussion a couple months ago. Instead of 2007-01-03 18:11:01 +00:00
tablespace.c pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
trigger.c Several changes to reduce the probability of running out of memory during 2006-11-23 01:14:59 +00:00
typecmds.c Support type modifiers for user-defined types, and pull most knowledge 2006-12-30 21:21:56 +00:00
user.c pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
vacuum.c Fix recently-understood problems with handling of XID freezing, particularly 2006-11-05 22:42:10 +00:00
vacuumlazy.c Fix recently-understood problems with handling of XID freezing, particularly 2006-11-05 22:42:10 +00:00
variable.c pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
view.c pgindent run for 8.2. 2006-10-04 00:30:14 +00:00