Re: Possible to dump/load a database from within psql?

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Brian Cardarella <brian(at)dockyard(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Possible to dump/load a database from within psql?
Date: 2016-01-25 10:56:01
Message-ID: 56A5FF41.1080205@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 25/01/2016 10:16, Brian Cardarella wrote:
> Is it possible, and if so how, to dump and then load a database to/from
> a file from within a psql connection?

You can use the COPY command to do a table at a time, but you'll get
just the data - you won't get permissions etc.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2016-01-25 10:56:41 Re: TABLESAMPLE usage
Previous Message Vik Fearing 2016-01-25 10:21:05 Re: TABLESAMPLE usage