postgresql/src/interfaces/ecpg
Tom Lane 42e663cc41 Add CheckTableNotInUse calls in DROP TABLE and DROP INDEX.
Recent releases had a check on rel->rd_refcnt in heap_drop_with_catalog,
but failed to cover the possibility of pending trigger events at DROP time.
(Before 8.4 we didn't even check the refcnt.)  When the trigger events were
eventually fired, you'd get "could not open relation with OID nnn" errors,
as in recent report from strk.  Better to throw a suitable error when the
DROP is attempted.

Also add a similar check in DROP INDEX.

Back-patch to all supported branches.
2011-02-15 15:50:06 -05:00
..
compatlib Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:08 +02:00
ecpglib Translation updates for release 8.4.6 2010-12-13 22:40:15 +02:00
include Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:08 +02:00
pgtypeslib Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:08 +02:00
preproc Translation updates for release 8.4.6 2010-12-13 22:40:15 +02:00
test Add CheckTableNotInUse calls in DROP TABLE and DROP INDEX. 2011-02-15 15:50:06 -05:00
ChangeLog Fixed auto allocation for binary data types. 2009-02-02 16:14:06 +00:00
Makefile Catch all errors in for and while loops in makefiles. Don't ignore any 2008-03-18 16:24:50 +00:00
README.dynSQL More README src cleanups. 2008-03-21 13:23:29 +00:00

$PostgreSQL: pgsql/src/interfaces/ecpg/README.dynSQL,v 1.3 2008/03/21 13:23:28 momjian Exp $

descriptor statements have the following shortcomings

- input descriptors (USING DESCRIPTOR <name>) are not supported
  
  Reason: to fully support dynamic SQL the frontend/backend communication
  	should change to recognize input parameters.
  	Since this is not likely to happen in the near future and you
  	can cover the same functionality with the existing infrastructure
  	(using s[n]printf), I'll leave the work to someone else.