]> granicus.if.org Git - postgresql/commit
Meanwhile, database names with single quotes in names don't work very well
authorBruce Momjian <bruce@momjian.us>
Sun, 12 Dec 1999 05:15:10 +0000 (05:15 +0000)
committerBruce Momjian <bruce@momjian.us>
Sun, 12 Dec 1999 05:15:10 +0000 (05:15 +0000)
commit11023eb1f5bd4fe6ddff652957848437b5d16f14
tree824aee6b2e00329d45a4f08cbd17b9479568d263
parent1ff0a475ee7b9a4f8097db1cac33c60c44fce4eb
Meanwhile, database names with single quotes in names don't work very well
at all, and because of shell quoting rules this can't be fixed, so I put
in error messages to that end.

Also, calling create or drop database in a transaction block is not so
good either, because the file system mysteriously refuses to roll back rm
calls on transaction aborts. :) So I put in checks to see if a transaction
is in progress and signal an error.

Also I put the whole call in a transaction of its own to be able to roll
back changes to pg_database in case the file system operations fail.

The alternative location issues I posted recently were untouched, awaiting
the outcome of that discussion. Other than that, this should be much more
fool-proof now.

The docs I cleaned up as well.

Peter Eisentraut                  Sernanders väg 10:115
doc/TODO
doc/src/sgml/ref/create_database.sgml
doc/src/sgml/ref/drop_database.sgml
src/backend/commands/dbcommands.c