Re: Getting show results into a table - Mailing list pgsql-general

From Guillaume Lelarge
Subject Re: Getting show results into a table
Date
Msg-id 1354137818.2232.12.camel@localhost.localdomain
Whole thread Raw
In response to Getting show results into a table  ("Little, Douglas" <DOUGLAS.LITTLE@orbitz.com>)
Responses Re: Getting show results into a table
List pgsql-general
On Wed, 2012-11-28 at 12:38 -0600, Little, Douglas wrote:
> Is there a way in sql to get the results of the show all command into a table?
>

SELECT name, setting, short_desc FROM pg_settings

> I'm expecting  something like
> Insert into Config_history as select * from (show all);
>

INSERT INTO config_history
  SELECT name, setting, short_desc FROM pg_settings;

That should work.


--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com



pgsql-general by date:

Previous
From: Christophe Pettus
Date:
Subject: 'alternatives'
Next
From: "Little, Douglas"
Date:
Subject: Re: Getting show results into a table