CVSROOT:	/cvsroot
Module name:	pgsql-server
Changes by:	tgl@svr1.postgresql.org	03/07/17 17:13:57

Modified files:
	src/backend/commands: comment.c 

Log message:
	For COMMENT ON DATABASE where database name is unknown or not the current
	database, emit a WARNING and do nothing, rather than raising ERROR.
	Per recent discussion in which we concluded this is the best way to deal
	with database dumps that are reloaded into a database of a new name.


Thu, 17 Jul 2003 17:13:57 -0300 (ADT)
tgl@svr1.postgresql.org (Tom Lane)
pgsql-server/src/backend/commands comment.c
> 	For COMMENT ON DATABASE where database name is unknown or not the current
> 	database, emit a WARNING and do nothing, rather than raising ERROR.
> 	Per recent discussion in which we concluded this is the best way to deal
> 	with database dumps that are reloaded into a database of a new name.

Please add a TODO note about allowing COMMENT ON DATABASE to function
without providing a database name at all.
18 Jul 2003 14:44:59 +0000
Rod Taylor <rbt@rbt.ca>
Re: pgsql-server/src/backend/commands comment.c

Added to TODO:

	* Prevent COMMENT ON DATABASE from using a database name


---------------------------------------------------------------------------

Rod Taylor wrote:
-- Start of PGP signed section.
> > 	For COMMENT ON DATABASE where database name is unknown or not the current
> > 	database, emit a WARNING and do nothing, rather than raising ERROR.
> > 	Per recent discussion in which we concluded this is the best way to deal
> > 	with database dumps that are reloaded into a database of a new name.
> 
> Please add a TODO note about allowing COMMENT ON DATABASE to function
> without providing a database name at all.
-- End of PGP section, PGP failed!

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Mon, 21 Jul 2003 20:49:18 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: pgsql-server/src/backend/commands comment.c