Skip site navigation (1) Skip section navigation (2)

Re: Modifying and solidifying contrib

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: "Kevin Barnard" <kevin(dot)barnard(at)gmail(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Michael Glaesemann" <grzm(at)seespotcode(dot)net>, "David Fetter" <david(at)fetter(dot)org>
Subject: Re: Modifying and solidifying contrib
Date: 2007-01-28 10:02:25
Message-ID: 200701281102.26221.peter_e@gmx.net (view raw or flat)
Thread:
Lists: pgsql-hackers
Kevin Barnard wrote:
> The basic idea of my proposal would be to have a function that checks
> for the existence of C libraries.  The next piece I would need would
> be a mechanism for psql to halt the restore SQL script if these
> checks failed. Finally I would need to add a switch to tell pg_dump
> to do the checks first thereby causing the restore to fail, hopefully
> with a nice message that clues the admin that something is wrong.

You already get this today.  If you create a C function and the library 
doesn't exist, you get an error, and if you use the right flags for 
psql or pg_restore, the restoration aborts.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

pgsql-hackers by date

Next:From: Lukas Kahwe SmithDate: 2007-01-28 10:38:35
Subject: Re: How to gain R/W access to developers wiki?
Previous:From: Peter EisentrautDate: 2007-01-28 09:58:02
Subject: Re: Modifying and solidifying contrib

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group