Andrew Biagioni <[EMAIL PROTECTED]> writes: > To force mixed or upper case, you quote the names, e.g.: > ALTER TABLE "MyTable" ADD COLUMN "MyNewCol" INT4;
Also, the command-line tools that we have (createdb, pg_dump, etc) generally will double-quote any SQL names that are given to them via the shell command line. This is not completely consistent but we settled on that behavior as the most convenient way. For awhile we had these tools just passing command-line arguments through into SQL as-is, so that unquoted names were effectively downcased. But then to put in a mixed-case name you had to do something like $ createdb '"MixedCase"' Simply double-quoting didn't work because the shell would strip off double quotes. That was just too ugly to work with, thus the current behavior was arrived at. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html