Re: pg_start_backup question

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: pgsql-general(at)postgresql(dot)org
Cc: db de <dbdevelopment09(at)gmail(dot)com>
Subject: Re: pg_start_backup question
Date: 2009-10-31 06:46:48
Message-ID: 200910310746.48242.guillaume@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Le samedi 31 octobre 2009 à 00:39:54, db de a écrit :
> Below is what I did:
> I opened a super user connection to creat a super user statement. Then use
> the super user statement to execute "SELECT pg_start_backup('label')".
>
> try
> {
> superuserCont = java.sql.DriverManager.getConnection(URL, su,
> suPassword);
> suStatement = superuserCont.createStatement();
> boolean ret = suStatement.execute("SELECT
> pg_start_backup('label')"); //LINE1
> }
> catch(SQLException e)
> {
> System.out.println("exception");
>
> //LINE2
> }
> finally
> {
> System.out.println("ret:" +
> ret);
> //LINE3
> }
>
> After LINE1 is executed, LINE3 is run and the output is: ret:false. LINE2
> is not executed.
>

Which PostgreSQL release do you use? did you activate archive_mode? what's in
your archive_command?

--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2009-10-31 11:52:01 Re: Absolute value of intervals
Previous Message David Fetter 2009-10-31 06:06:17 Re: Rewriting select statements