> > > % pg_dump postgres > tmpfile
> > > % cat tmpfile
> > > \connect - postgres
> > > CREATE TABLE a (b int4 DEFAULT foo ( ));
> > > \connect - postgres
> > > CREATE FUNCTION foo ( ) RETURNS int4 AS 'select 1' LANGUAGE 'SQL';
> > > COPY a FROM stdin;
> > > \.
> > > % destroydb
> > > % createdb
> > > % psql < tmpfile
> > >
Yes, I have this in my mailbox. Doesn't hurt to be reminded though.
--
Bruce Momjian | 830 Blythe Avenue
maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)