X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B023CD1B18F for ; Fri, 11 Jun 2004 11:20:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40304-05 for ; Fri, 11 Jun 2004 14:20:39 +0000 (GMT) Received: from p15124592.pureserver.info (p15124592.pureserver.info [217.160.181.164]) by svr1.postgresql.org (Postfix) with ESMTP id AE4FFD1B1DC for ; Fri, 11 Jun 2004 11:20:34 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by p15124592.pureserver.info (Postfix) with ESMTP id 44C8D1796C for ; Fri, 11 Jun 2004 16:20:37 +0200 (CEST) Received: from sarge (p508A8738.dip0.t-ipconnect.de [80.138.135.56]) by p15124592.pureserver.info (Postfix) with ESMTP id 860531795A for ; Fri, 11 Jun 2004 16:20:36 +0200 (CEST) Received: from mk-os.de (unknown [192.168.0.210]) by sarge (Postfix) with ESMTP id 47A883EC05 for ; Fri, 11 Jun 2004 16:20:24 +0200 (CEST) Message-ID: <40C9C05A.8030502@mk-os.de> Date: Fri, 11 Jun 2004 16:23:22 +0200 From: Martin Knipper User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.6) Gecko/20040113 X-Accept-Language: de-at, de, en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: pg_dump inside function (was: Re: (No Subject)) References: In-Reply-To: X-Enigmail-Version: 0.83.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS at MK-OS X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=RCVD_IN_NJABL, RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200406/99 X-Sequence-Number: 18044 Please provide a subject for futher mailings to this list. Am 11.06.2004 06:36 schrieb William Anthony Lim: > is it possible to dump within procedural language/SQL syntax? > Using pg_dump from console is very confusing for some end user > who don't have Linux skills. so I decide to create a function to > do that, and they may call it from my application. > Why don't you use a system call e.g. system("pg_dump ...") inside your application. It should be available in the programming language you use to write your application. Greetings, Martin