From: | Pete Forman <pete(dot)forman(at)westerngeco(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Jeff Self <jself(at)greatbridge(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: How do I import table information? |
Date: | 2001-01-19 09:17:13 |
Message-ID: | 14952.1561.172659.236073@kryten.bedford.waii.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Tom Lane writes:
> Jeff Self <jself(at)greatbridge(dot)com> writes:
> > Is there a way to run this script without removing the comments?
>
> You'll have to change the comments to one of the SQL-standard
> conventions:
At the risk of stating the obvious, you can keep the comments with
sed 's/^#/--/' /home/dir/database.sql | psql -e database
or ignore them with
grep -v '^#' /home/dir/database.sql | psql -e database
--
Pete Forman -./\.- Disclaimer: This post is originated
WesternGeco -./\.- by myself and does not represent
pete(dot)forman(at)westerngeco(dot)com -./\.- opinion of Schlumberger, Baker
http://www.crosswinds.net/~petef -./\.- Hughes or their divisions.
From | Date | Subject | |
---|---|---|---|
Next Message | Colin Taylor | 2001-01-19 09:25:12 | Questions about Synonyms - Again |
Previous Message | Gordan Bobic | 2001-01-19 09:12:05 | Re: Another optimizer question |