From: | Paul Silveira <plabrh1(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | psql "SCHEMA" switch |
Date: | 2006-12-22 21:15:54 |
Message-ID: | 8028863.post@talk.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I was trying to run a psql script today against a database today. This
script was schema agnostic. (There were table creations and function
creations but none of them contained the specific schema to create them
in...)
I wanted to connect to a DB and then insert that new DDL into a "specific"
schema. Because psql does not have a schema switch, I had to do it this
way...
sed -e '1i\\n SET search_path to contrib;\n' <
/usr/local/pgsql-8.2.0/share/contrib/tsearch2.sql | psql -dtemplate1 -p5433
-Upostgres
I would have liked to do it this way...
psql -dtemplate1 -p5433 -Upostgres -Xcontrib (I put an X there because "S"
was already taken. It could be any letter...)
Anyone else agree?
-Paul
--
View this message in context: http://www.nabble.com/psql-%22SCHEMA%22-switch-tf2872570.html#a8028863
Sent from the PostgreSQL - general mailing list archive at Nabble.com.
From | Date | Subject | |
---|---|---|---|
Next Message | Shoaib Mir | 2006-12-22 21:23:16 | Re: psql "SCHEMA" switch |
Previous Message | postgresql.org | 2006-12-22 20:22:46 | Problem with index in OR'd expression |