RE: extracting the sql for a function

Поиск
Список
Период
Сортировка
Искать
От
Igor Neyman
Тема
RE: extracting the sql for a function
Дата
Msg-id
BN6PR17MB15210E342AC98D26D97EA756DA370@BN6PR17MB1521.namprd17.prod.outlook.com
Ответ на
Список
Дерево обсуждения
extracting the sql for a function Paul Tilles <paul.tilles@noaa.gov>
RE: extracting the sql for a function "Charles Clavadetscher" <clavadetscher@swisspug.org>
Re: extracting the sql for a function Melvin Davidson <melvin6925@gmail.com>
RE: extracting the sql for a function Igor Neyman <ineyman@perceptron.com>

-----Original Message-----
From: Paul Tilles [mailto:paul.tilles@noaa.gov] 
Sent: Thursday, August 23, 2018 1:18 PM
To: pgsql-general@postgresql.org
Subject: extracting the sql for a function

WARNING: This email originated from outside of Perceptron! Please be mindful of PHISHING and MALWARE risks.

Using postgres Version 9.5

I can extract the sql for a table using

pg_dump  -d database_name  -s  -t  table_name  -f  table_name.sql

Is there something equivalent for extracting the sql for a function from the database?


Paul Tilles

__________________________________________________________________________________________________________

select prosrc from pg_proc where proname = 'function_name';

You can pronamespace to WHERE clause to specify schema.

Regards,
Igor Neyman
В списке pgsql-general по дате отправления
От: Paul Tilles
Дата:
От: Mark Jeffcoat
Дата:
Сообщение: Join condition parsing puzzle
FAQ