Hi: I wrote a function for my database and 'loaded' it, but then misplaced the code. Is there a query I can issue to retrieve it? Thanks
Colton A Smith wrote: > Hi: > > I wrote a function for my database and 'loaded' it, but then > misplaced the code. Is there a query I can issue to retrieve it? psql \df+? That works for non-C languages. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Colton A Smith wrote:
>> I wrote a function for my database and 'loaded' it, but then
>> misplaced the code. Is there a query I can issue to retrieve it?
> psql \df+? That works for non-C languages.
Also, consider doing "pg_dump -s yourdb" and then pulling the CREATE
FUNCTION entry out of the dump script.
regards, tom lane
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера