pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Knipper <knipper@mk-os.de>
To: pgsql-sql@postgresql.org
Subject: pg_dump inside function (was: Re: (No Subject))
Date: Fri, 11 Jun 2004 16:23:22 +0200
Message-ID: <40C9C05A.8030502@mk-os.de> (raw)
In-Reply-To: <CPPCNALNBDAIECAA@whowhere.com>
References: <CPPCNALNBDAIECAA@whowhere.com>

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



Message-ID: <40C9C05A.8030502@mk-os.de>
Permalink:  ../40C9C05A.8030502@mk-os.de/
Also on:    postgresql.org/message-id/40C9C05A.8030502@mk-os.de

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: knipper@mk-os.de
  Subject: Re: pg_dump inside function (was: Re: (No Subject))
  In-Reply-To: <40C9C05A.8030502@mk-os.de>

* 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