Re: [BUGS] issue with C functions using pg_dump - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] issue with C functions using pg_dump
Date
Msg-id 7244.1503776197@sss.pgh.pa.us
Whole thread Raw
In response to [BUGS] issue with C functions using pg_dump  (Cédric Prin-Derre <prinderr@gmail.com>)
Responses Re: [BUGS] issue with C functions using pg_dump  (Cédric Prin-Derre <prinderr@gmail.com>)
List pgsql-bugs
Cédric Prin-Derre <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

pgsql-bugs by date:

Previous
From: Cédric Prin-Derre
Date:
Subject: [BUGS] issue with C functions using pg_dump
Next
From: Cédric Prin-Derre
Date:
Subject: Re: [BUGS] issue with C functions using pg_dump