Re: Getting show results into a table

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

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