pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Tilles <paul.tilles@noaa.gov>
To: pgsql-general@postgresql.org
Subject: extracting the sql for a function
Date: Thu, 23 Aug 2018 13:17:35 -0400
Message-ID: <ee1a7fbd-a91d-7166-85b2-9fa9e68b0df6@noaa.gov> (raw)

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





view thread (4+ messages)  latest in thread

Message-ID: <ee1a7fbd-a91d-7166-85b2-9fa9e68b0df6@noaa.gov>
Permalink:  ../ee1a7fbd-a91d-7166-85b2-9fa9e68b0df6@noaa.gov/
Also on:    postgresql.org/message-id/ee1a7fbd-a91d-7166-85b2-9fa9e68b0df6@noaa.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: paul.tilles@noaa.gov
  Subject: Re: extracting the sql for a function
  In-Reply-To: <ee1a7fbd-a91d-7166-85b2-9fa9e68b0df6@noaa.gov>
  References: <ee1a7fbd-a91d-7166-85b2-9fa9e68b0df6@noaa.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox