[GENERAL] Q: ecpg and UPDATE/DELETE ... RETURNING ... for multiple returned rows

2012-10-23 Thread Enke, Dr., Michael
Hello experts, I try to do an update together with a RETURNING clause but without success (postgresql 9.1 on CentOS 6.2), the returned data can be multiple rows (not only one row expected like in src/interfaces/ecpg/test/sql/insupd.pgc): 1: EXEC SQL DECLARE cur CURSOR FOR UPDATE t set a=0 where

[GENERAL] oracle_fdw with oracle os authentication

2012-10-23 Thread Papiernik Anna-AAP053
I have Oracle with OS authentication. And I have installed PostgreSQL and I want to migrate data from Oracle to PostgreSQL database. I have performed steps: CREATE EXTENSION oracle_fdw; CREATE SERVER oradb FOREIGN DATA WRAPPER oracle_fdw OPTIONS (dbserver ''); GRANT USAGE ON FOREIGN SERVER oradb

Re: [GENERAL] Streaming replication failed to start scenarios

2012-10-23 Thread Ben Chobot
On Oct 22, 2012, at 6:57 AM, chinnaobi wrote: > Hi Laurenz Albe, > > I have tested using cygwin rsync in windows 2008 R2, just after restart the > server. > > for 10 GB it took nearly 5 minutes to sync, > for 50 GB it took nearly 30 minutes, -- too long Though there were no big > changes. > >

[GENERAL] oracle_fdw with oracle os authentication

2012-10-23 Thread Papiernik Anna-AAP053
Hi I have Oracle with OS authentication. And I have installed PostgreSQL and I want to migrate data from Oracle to PostgreSQL database. I have performed steps: CREATE EXTENSION oracle_fdw; CREATE SERVER oradb FOREIGN DATA WRAPPER oracle_fdw OPTIONS (dbserver ''); GRANT USAGE ON FOREIGN SERVER or

[GENERAL] PostgreSQL Magazine now available in Chinese

2012-10-23 Thread damien clochard
Hi, I am quite happy to announce the release of PostgreSQL Magazine in Chinese, thanks to the tremendous work of the Chinese translators team, namely Wilson Guam and Scott Siu. As for the English version you can either read it online, download the PDF or buy a print copy. Just click on the links

Re: [GENERAL] Need sql to pull data from terribly architected table

2012-10-23 Thread David Johnston
From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of Gauthier, Dave Sent: Tuesday, October 23, 2012 3:31 PM To: pgsql-general@postgresql.org Subject: Re: [GENERAL] Need sql to pull data from terribly architected table Thanks for the answers. But I a

Re: [GENERAL] Need sql to pull data from terribly architected table

2012-10-23 Thread David Johnston
From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of Richard Broersma Sent: Tuesday, October 23, 2012 3:24 PM To: ch...@chriscurvey.com Cc: Gauthier, Dave; pgsql-general@postgresql.org Subject: Re: [GENERAL] Need sql to pull data from terribly architecte

Re: [GENERAL] Need sql to pull data from terribly architected table

2012-10-23 Thread Gauthier, Dave
Thanks for the answers. But I also have a predicate... select col1,col2 from foo where col4='c4' and col5 <> 'xxx'; How is that done? From: Richard Broersma [mailto:richard.broer...@gmail.com] Sent: Tuesday, October 23, 2012 3:24 PM To: ch...@chriscurvey.com Cc: Gauthier, Dave; pgsql-general@po

Re: [GENERAL] database corruption questions

2012-10-23 Thread Kevin Grittner
Heine Ferreira wrote: > Are there any best practices for avoiding database corruption? First and foremost, do not turn off fsync or full_page_writes in your configuration. After that the most common causes for database corruption I've seen are bad RAM (ECC RAM is a requirement, not an option for

Re: [GENERAL] Need sql to pull data from terribly architected table

2012-10-23 Thread David Johnston
From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of Gauthier, Dave Sent: Tuesday, October 23, 2012 2:53 PM To: pgsql-general@postgresql.org Subject: [GENERAL] Need sql to pull data from terribly architected table Here's the deal... Instead of a

Re: [GENERAL] Need sql to pull data from terribly architected table

2012-10-23 Thread Chris Curvey
On Tue, Oct 23, 2012 at 2:52 PM, Gauthier, Dave wrote: > Here's the deal... > > ** ** > > Instead of architecting and loading a table like... > > create teble foo (col1 text, col2 text, col3 text, col4 text, col5 text); > > > insert into foo (col1,col2,col3,col4,col5) values > ('

[GENERAL] Need sql to pull data from terribly architected table

2012-10-23 Thread Gauthier, Dave
Here's the deal... Instead of architecting and loading a table like... create teble foo (col1 text, col2 text, col3 text, col4 text, col5 text); insert into foo (col1,col2,col3,col4,col5) values ('c1',null,'c3','c4',null); They did this instead... create table foo (property text, value text); in

Re: [GENERAL] 9.1 to 9.2 requires a dump/reload?

2012-10-23 Thread Scott Marlowe
On Tue, Oct 23, 2012 at 7:41 AM, Nikolas Everett wrote: > On Mon, Oct 22, 2012 at 6:17 PM, Alan Hodgson wrote: >> >> On Monday, October 22, 2012 05:55:07 PM Nikolas Everett wrote: >> > I see that pg_upgrade is an option. Having never used how long should I >> > expect pg_upgrade to take? Obviou

Re: [GENERAL] 9.1 to 9.2 requires a dump/reload?

2012-10-23 Thread Nikolas Everett
On Mon, Oct 22, 2012 at 6:17 PM, Alan Hodgson wrote: > On Monday, October 22, 2012 05:55:07 PM Nikolas Everett wrote: > > I see that pg_upgrade is an option. Having never used how long should I > > expect pg_upgrade to take? Obviously we'll measure it in our > environment, > > but it'd be nice

Re: [GENERAL] Streaming replication failed to start scenarios

2012-10-23 Thread chinnaobi
Hi Laurenz Albe, Correct me If am wrong in doing the high availability for postgresql with two servers win windows postgres 9.1 S1 -Primary S2 -Standby S1 -dead, S2- becomes primary S1-comes back and This should be turned to a new standby --Am I wrong ??--This step is most time taking one, Whi