Re: [HACKERS] dump/reload
Bruce Momjian <maillist@candle.pha.pa.us>
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: sferac@bo.nettuno.it (Jose' Soares Da Silva)
Cc: brett@work.chicken.org, pgsql-hackers@hub.org
Date: 1998-06-03T13:00:11Z
Lists: pgsql-hackers
> > > % 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)