Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlgtf-00015B-TY for pgsql-bugs@arkaria.postgresql.org; Sat, 26 Aug 2017 19:37:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dlgtf-0002vm-Fp for pgsql-bugs@arkaria.postgresql.org; Sat, 26 Aug 2017 19:37:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dlgsx-0001dY-ON for pgsql-bugs@postgresql.org; Sat, 26 Aug 2017 19:36:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dlgsq-0005xa-5U for pgsql-bugs@postgresql.org; Sat, 26 Aug 2017 19:36:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v7QJab9N007245; Sat, 26 Aug 2017 15:36:37 -0400 From: Tom Lane To: =?UTF-8?B?Q8OpZHJpYyBQcmluLURlcnJl?= cc: pgsql-bugs@postgresql.org Subject: Re: issue with C functions using pg_dump In-reply-to: References: Comments: In-reply-to =?UTF-8?B?Q8OpZHJpYyBQcmluLURlcnJl?= message dated "Sat, 26 Aug 2017 20:08:27 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7243.1503776197.1@sss.pgh.pa.us> Date: Sat, 26 Aug 2017 15:36:37 -0400 Message-ID: <7244.1503776197@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org =?UTF-8?B?Q8OpZHJpYyBQcmluLURlcnJl?= 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