Re: [GENERAL] PL/R install, no pgxs available

2012-04-30 Thread Joe Conway
On 04/30/2012 06:31 PM, John R Pierce wrote: >> On 04/30/12 8:04 PM, Daniel Cole wrote: >>> I am running/*USE_PGXS=1 make*/ in my PLR directory and it returns: >>> >>> /Makefile:36: /usr/lib/postgresql/9.1/lib/pgxs > > > oops, on the RHEL6 yum install, thats > > /usr/lib/postgresql/9.1/lib/p

Re: [GENERAL] PL/R install, no pgxs available

2012-04-30 Thread John R Pierce
On 04/30/12 8:22 PM, John R Pierce wrote: On 04/30/12 8:04 PM, Daniel Cole wrote: Have 9.1.3 running with Postgis 2.0 . Trying to add PR/R and getting some errors about my postgres install. I found some similar messages, but none with a workable solution for me. Any thoughts are very apprec

Re: [GENERAL] PL/R install, no pgxs available

2012-04-30 Thread John R Pierce
On 04/30/12 8:04 PM, Daniel Cole wrote: Have 9.1.3 running with Postgis 2.0 . Trying to add PR/R and getting some errors about my postgres install. I found some similar messages, but none with a workable solution for me. Any thoughts are very appreciated. I am running/*USE_PGXS=1 make*/ in

[GENERAL] PL/R install, no pgxs available

2012-04-30 Thread Daniel Cole
Hi Guys, Have 9.1.3 running with Postgis 2.0 . Trying to add PR/R and getting some errors about my postgres install. I found some similar messages, but none with a workable solution for me. Any thoughts are very appreciated. I am running* USE_PGXS=1 make* in my PLR directory and it returns: *

[GENERAL] Re: Test ODBC connection failed. Pleae help me to take a look. Thanks.

2012-04-30 Thread leaf_yxj
Hi Guys: I installed this odbc driver :psqlodbc-08.02.0400 and datadirect-x_xx. I want to test this two things work or not. Please give me some idea. Thanks. Grace -- View this message in context: http://postgresql.1045698.n5.nabble.com/Test-ODBC-connection-failed-Pleae-help-me-to-take-a-loo

Re: [GENERAL] Test ODBC connection failed. Pleae help me to take a look. Thanks.

2012-04-30 Thread yxj
Hi Chris, Actually I only want to test ODBC. But I didn't have any idea to test. We have pgsqlodbc installed, but I don't how to test it. Please give me some clue. Thanks. Grace At 2012-05-01 03:54:36,"Chris Curvey" wrote: >you want psql not isql. On Mon, Apr 30, 2012 at 3:19 PM, yxj w

[GENERAL] errors on restoring postgresql binary dump to glusterfs

2012-04-30 Thread Liang Ma
Hi There, While trying to restore a ~700GM binary dump by command pg_restore -d dbdata < sampledbdata-20120327.pgdump I encountered following errors repeatedly pg_restore: [archiver (db)] Error from TOC entry 2882463; 2613 10267347 BLOB 10267347 sdmcleod pg_restore: [archiver (db)] could not ex

[GENERAL] Streaming Replication Error

2012-04-30 Thread Andrew Hannon
Hello, We were auditing our logs on one of our PG 9.0.6 standby servers that we use for nightly snapshotting. The high-level process is: 1. Stop PG 2. Snapshot 3. Start PG Where "Snapshot" includes several steps to ensure data/filesystem integrity. The archive command on the master continues t

Re: [GENERAL] Test ODBC connection failed. Pleae help me to take a look. Thanks.

2012-04-30 Thread Chris Curvey
>you want psql not isql. On Mon, Apr 30, 2012 at 3:19 PM, yxj wrote: > Hi Scott, > > I amn't farmiliar with isql. Why I said isql is because that I did some > research. they said something related to isql. No matter it's isql or psql. > > 1)How can I test the odbc function? > 2) what's isql, in w

Re: [GENERAL] Test ODBC connection failed. Pleae help me to take a look. Thanks.

2012-04-30 Thread yxj
Hi Scott, I amn't farmiliar with isql. Why I said isql is because that I did some research. they said something related to isql. No matter it's isql or psql. 1)How can I test the odbc function? 2) what's isql, in which circumstances , we use isql. Thanks. Regards. Grace At 2012-05-01

Re: [GENERAL] Test ODBC connection failed. Pleae help me to take a look. Thanks.

2012-04-30 Thread Scott Marlowe
On Mon, Apr 30, 2012 at 12:32 PM, leaf_yxj wrote: > These odbc drivers (psqlodbc-08.02.0400  psqlodbc-08.03.0400 > psqlodbc-09.00.0200 psqlodbc-08.02.0500  psqlodbc-08.04.0200) were > installed. But I can't fine where the odbc.ini. After I set up my .odbc.ini. > And setup the driver and driver man

Re: [GENERAL] Database upgrading: upgrade server first or client first?

2012-04-30 Thread Andy Colson
On 4/30/2012 1:34 PM, roy hills wrote: I'm running a postgresql 8.1 database on a single server which is queried from a number of client systems. Both server and clients are running Debian Linux. I need to upgrade from 8.1 to 8.3, but it's difficult for me to upgrade everything at once. Is it po

Re: [GENERAL] Database upgrading: upgrade server first or client first?

2012-04-30 Thread Steve Crawford
On 04/30/2012 11:34 AM, roy hills wrote: I'm running a postgresql 8.1 database on a single server which is queried from a number of client systems. Both server and clients are running Debian Linux. I need to upgrade from 8.1 to 8.3, but it's difficult for me to upgrade everything at once. Is i

[GENERAL] Database upgrading: upgrade server first or client first?

2012-04-30 Thread roy hills
I'm running a postgresql 8.1 database on a single server which is queried from a number of client systems. Both server and clients are running Debian Linux. I need to upgrade from 8.1 to 8.3, but it's difficult for me to upgrade everything at once. Is it possible to run different versions of th

[GENERAL] Test ODBC connection failed. Pleae help me to take a look. Thanks.

2012-04-30 Thread leaf_yxj
These odbc drivers (psqlodbc-08.02.0400 psqlodbc-08.03.0400 psqlodbc-09.00.0200 psqlodbc-08.02.0500 psqlodbc-08.04.0200) were installed. But I can't fine where the odbc.ini. After I set up my .odbc.ini. And setup the driver and driver manager environment variables, I still can't get the isql com

Re: [GENERAL] Listen and Notify

2012-04-30 Thread Merlin Moncure
On Mon, Apr 30, 2012 at 1:47 AM, Alexander Reichstadt wrote: > Hi, > > From the documentation I was able to build a trigger firing upon deletion of > a record a function that delivers tablename_operation as a notification one > needs to subscribe to. So in terminal I can say LISTEN persons_delet

Re: [GENERAL] Listen and Notify

2012-04-30 Thread Tom Lane
Alexander Reichstadt writes: > But what I don't fully understand is how to do this with PQnotifies. > Following the docu I get no notifications even though I subscribe to them > after successfully connecting to the server the same way I do using terminal. Maybe you forgot PQconsumeInput? There

Re: [GENERAL] How to update a newly added column with sub selects?

2012-04-30 Thread J.V.
Here are additional details (in addition to the original post) on what I am trying to do with a single update statement: Suppose three tables: 1) person 2) person_home 3) group 1) table: person 3) table: group column:person_id column: grou

[GENERAL] Re: how to set up automatically startup database when the server boot or reboot.

2012-04-30 Thread leaf_yxj
Hi Guys, I got the support from Greenplum. I will give a feedback to everybody after I test. Thanks. They told me to add in /etc/rc.d. -- View this message in context: http://postgresql.1045698.n5.nabble.com/how-to-set-up-automatically-startup-database-when-the-server-boot-or-reboot-tp5670442p

Re: [GENERAL] Question on notifications

2012-04-30 Thread Albe Laurenz
Alexander Reichstadt wrote: > From the documentation I was able to build a trigger firing upon deletion of a record a function that > delivers tablename_operation as a notification one needs to subscribe to. So in terminal I can say > LISTEN persons_delete and instantly will receive > > Asyn

[GENERAL] Listen and Notify

2012-04-30 Thread Alexander Reichstadt
Hi, >From the documentation I was able to build a trigger firing upon deletion of a >record a function that delivers tablename_operation as a notification one >needs to subscribe to. So in terminal I can say LISTEN persons_delete and >instantly will receive Asynchronous notification "p

Re: [GENERAL] Question on notifications

2012-04-30 Thread Alexander Reichstadt
Thanks, I had checked the example before but couldn't make sense out of it in terms of wrapping it in Objective-C. I left it in C now and it works fine. The trigger I am using now looks like this: CREATE FUNCTION notify_trigger() RETURNS trigger AS $$ DECLARE BEGIN IF ( TG_OP = 'INSERT' ) THE

Re: [GENERAL] QUestion on notifications

2012-04-30 Thread Alexander Reichstadt
Thanks, I had checked the example before but couldn't make sense out of it in terms of wrapping it in Objective-C. I left it in C now and it works fine. The trigger I am using now looks like this: CREATE FUNCTION notify_trigger() RETURNS trigger AS $$ DECLARE BEGIN IF ( TG_OP = 'INSERT' ) THE

Re: [GENERAL] Question on notifications

2012-04-30 Thread Alexander Reichstadt
Thank you. You don't get the error, because you called FOR EACH ROW EXECUTE, which I didn't. I fixed it, it all works now! Am 30.04.2012 um 14:58 schrieb Albe Laurenz: > CREATE TRIGGER t1_trig AFTER INSERT OR UPDATE OR DELETE ON t1 > FOR EACH ROW EXECUTE PROCEDURE notify_trigger(); signatur

Re: [GENERAL] Question on notifications

2012-04-30 Thread Albe Laurenz
Alexander Reichstadt wrote: > Thanks, I had checked the example before but couldn't make sense out of it in terms of wrapping it in > Objective-C. I left it in C now and it works fine. > > The trigger I am using now looks like this: > > CREATE FUNCTION notify_trigger() RETURNS trigger AS $$ > >

Re: [GENERAL] postgresql log indicate too many execute S_2:COMMIT

2012-04-30 Thread Albe Laurenz
leo xu wrote: > I test postgresql database performance recently,i set > log_min_duration_statement=1000; > i monitor pg_log file,i find too many execue S_2:commit > 10.0.44.21:30170:2012-04-28 11:38:46.340 CSTLOG: duration: 1050.679 ms > execute S_2: COMMIT > > 10.0.44.21:30208:2012-04-28 11:

Re: [GENERAL] problems after restoring from a pg_basebackup

2012-04-30 Thread Albe Laurenz
Lonni J Friedman wrote: > I'm running postgresql-9.1.3 on a Linux-x86_64 (Fedora16, if it > matters) system. I noticed the existence of pg_basebackup starting in > 9.1, and figured I'd try it out and see if it would simplify our > backup & management processes. > > $ pg_basebackup -P -v -D /tmp/b

Re: [GENERAL] postgresql standby using pg_archivecleanup don't work

2012-04-30 Thread Simon Riggs
On Fri, Apr 27, 2012 at 7:14 AM, leo xu wrote: > i have one parimary ,two standby. one standby using stream replication pg_archivecleanup doesn't work with more than one standby feeding from a single archive --  Simon Riggs   http://www.2ndQuadrant.com/  PostgreSQL Development,