Re: Getting show results into a table

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Getting show results into a table
Дата
Msg-id 20121128185359.69330@gmx.com
обсуждение исходный текст
Ответ на Getting show results into a table  ("Little, Douglas" <DOUGLAS.LITTLE@orbitz.com>)
Список 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 по дате отправления:

Предыдущее
От: "Little, Douglas"
Дата:
Сообщение: Getting show results into a table
Следующее
От: Christophe Pettus
Дата:
Сообщение: 'alternatives'