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

From Kevin Grittner
Subject Re: Getting show results into a table
Date
Msg-id 20121128185359.69330@gmx.com
Whole thread Raw
In response to Getting show results into a table  ("Little, Douglas" <DOUGLAS.LITTLE@orbitz.com>)
List pgsql-general
Little, Douglas wrote:

> Is there a way in sql to get the results of the show all command into a table?
>
> 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;

or maybe:

create table config_history as
  select name, setting, short_desc as description from pg_settings;

-Kevin


pgsql-general by date:

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