From: Tom Lane <tgl@sss.pgh.pa.us>
To: Cédric Prin-Derre <prinderr@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: issue with C functions using pg_dump
Date: Sat, 26 Aug 2017 15:36:37 -0400
Message-ID: <7244.1503776197@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGUCaXFcytd_YPfaURjaafmakiQyx9NP=-UbKbPj=aMpLtRONQ@mail.gmail.com>
References: <CAGUCaXFcytd_YPfaURjaafmakiQyx9NP=-UbKbPj=aMpLtRONQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
=?UTF-8?B?Q8OpZHJpYyBQcmluLURlcnJl?= <prinderr@gmail.com> writes:
> i am am doing some test using the Adventureworks sample database (available
> on postgresql wiki) and i have noticed an issue with pgdump
> pg_dump --dbname=postgresql://postgres:xxx@127.0.0.1:5432/Adventureworks
> --no-owner --format=plain --schema=public --file="D:\public.sql"
> the generated sql file does not contain the code of the LANGUAGE c
> functions stored in this schema
If you're expecting it to contain the C source code, you're mistaken.
It should just be reconstructing the CREATE FUNCTION commands.
Typical output for a C-language function might be something like
CREATE FUNCTION int44in(cstring) RETURNS city_budget
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/regress.so', 'int44in';
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, prinderr@gmail.com
Subject: Re: issue with C functions using pg_dump
In-Reply-To: <7244.1503776197@sss.pgh.pa.us>
References: <CAGUCaXFcytd_YPfaURjaafmakiQyx9NP=-UbKbPj=aMpLtRONQ@mail.gmail.com> <7244.1503776197@sss.pgh.pa.us>
* 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