Joseph Sadove <[EMAIL PROTECTED]> writes: > When I DROP it again and just re- CREATE it, without doing anything, all the > schemas and objects are there as if I never dropped it.
It sounds to me like you have put a bunch of junk into the template1 database. This was a bad move :-(. What you can do as far as restoring your old database goes is to create your new database using template0 instead of template1 as the source. See http://www.postgresql.org/docs/7.4/static/manage-ag-templatedbs.html In the longer term, you might want to go back to a pristine template1. It's possible to drop template1 and recreate it from template0, but there are some gotchas to dodge. Look up the detailed description of how to do it at techdocs.postgresql.org --- I don't have the exact URL at hand. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match