Re: [GENERAL] equivalent for md5, clobs and varchar2 list

2017-09-13 Thread George Neuner
On Thu, 14 Sep 2017 00:01:09 +, Peter Koukoulis wrote: >is there an equivalent of a odcivarchar2list in PostgreSQL. I'm running the >code in Oracle 11gr2. >I know that the equivalent of dbms_crypto. hash( " " ,2) is md5(), but I >cannot find anything similar to odcivarchar2list? >I am cons

[GENERAL] BDR, near xid wraparound, a lot of files in pg_subtrans directory

2017-09-13 Thread milist ujang
HI list, I have a database with bdr environment which keep alerting these messages in log file: HINT: Close open transactions soon to avoid wraparound problems. WARNING: oldest xmin is far in the past Querying pg_stat_activity where state='active'; datname | template1 query

Re: [GENERAL] Postgres DB is failed due to pg_Xlog is continues full.

2017-09-13 Thread Gavin Flower
On 14/09/17 16:11, Yogesh Sharma wrote: >>What you could do is copying its contents to a large disk, and then allow it to recover from the crash.  I will copy the PGDATA into large disk. After that it is require to execute some specific command or automatically recovery will start? If any comma

Re: [GENERAL] Postgres DB is failed due to pg_Xlog is continues full.

2017-09-13 Thread John R Pierce
On 9/13/2017 9:11 PM, Yogesh Sharma wrote: >>What you could do is copying its contents to a large disk, and then allow it to recover from the crash.  I will copy the PGDATA into large disk. After that it is require to execute some specific command or automatically recovery will start? If any co

Re: [GENERAL] Postgres DB is failed due to pg_Xlog is continues full.

2017-09-13 Thread Yogesh Sharma
>>What you could do is copying its contents to a large disk, and then allow it to recover from the crash. I will copy the PGDATA into large disk. After that it is require to execute some specific command or automatically recovery will start? If any command is require to execute please let me know.

Re: [GENERAL] Postgres DB is failed due to pg_Xlog is continues full.

2017-09-13 Thread Michael Paquier
On Thu, Sep 14, 2017 at 12:44 PM, John R Pierce wrote: > prior to that error, something else catastrophic must have happened to the > system, that error is more of a side effect. recovering a database server > that far gone which is running such an obsolete version will likely be an > expensive pr

Re: [GENERAL] Postgres DB is failed due to pg_Xlog is continues full.

2017-09-13 Thread Yogesh Sharma
Dear all, As current situation, i can not upgrade on higher version. Is there any recovery command available? Regards, Yogesh On Thursday, September 14, 2017, Gavin Flower wrote: > On 14/09/17 15:29, Yogesh Sharma wrote: > >> Dear All, >> >> Thanks in advance. >> >> We are using Postgres 8.1.

Re: [GENERAL] Postgres DB is failed due to pg_Xlog is continues full.

2017-09-13 Thread John R Pierce
On 9/13/2017 8:29 PM, Yogesh Sharma wrote: We are using Postgres 8.1.18 version. In Postgres log, we found below logs. –- CONTEXT:writing block 0 of relation 1664/0/1260 ERROR: could not write block 0 of relation 1664/0/1260: Bad address Due to this

Re: [GENERAL] Postgres DB is failed due to pg_Xlog is continues full.

2017-09-13 Thread Gavin Flower
On 14/09/17 15:29, Yogesh Sharma wrote: Dear All, Thanks in advance. We are using Postgres 8.1.18 version. In Postgres log, we found below logs. –- CONTEXT:writing block 0 of relation 1664/0/1260 ERROR: could not write block 0 of relation 1664/0/1260: Bad address --

Re: [GENERAL] Postgres DB is failed due to pg_Xlog is continues full.

2017-09-13 Thread Yogesh Sharma
Dear All, Thanks in advance. We are using Postgres 8.1.18 version. In Postgres log, we found below logs. –- CONTEXT:writing block 0 of relation 1664/0/1260 ERROR: could not write block 0 of relation 1664/0/1260: Bad address Due to this pglog_Xlog dire

[GENERAL] equivalent for md5, clobs and varchar2 list

2017-09-13 Thread Peter Koukoulis
Hi is there an equivalent of a odcivarchar2list in PostgreSQL. I'm running the code in Oracle 11gr2. I know that the equivalent of dbms_crypto. hash( " " ,2) is md5(), but I cannot find anything similar to odcivarchar2list? I am constrained by not being able to declare types in the database. I a

Re: [GENERAL] pg_rewind copy so much data

2017-09-13 Thread Michael Paquier
On Wed, Sep 13, 2017 at 2:21 PM, Hung Phan wrote: > If I run pg_rewind with debug option, it just show additional bunch of files > copied in directories like base or pg_tblspc. I claim that there is no data > inserted of modified from the first step. The only difference between two > server is cau

Re: [GENERAL] Perl script is killed by SIGPIPE

2017-09-13 Thread tirveni yadav
On Wed, Sep 13, 2017 at 11:04 AM, Yogesh Sharma wrote: > Dear Daniel, > Yes , we are using DBI for connection. > > Basically we observed that after dbh->do() return nothing if we are trying > to insert duplicate entry. > But it is not occurred always. > It return exit 1 if try to insert duplicate

Re: [GENERAL] Joining 16 tables seems slow

2017-09-13 Thread Frank Millman
From: Chris Travers Sent: Tuesday, September 12, 2017 3:36 PM To: Frank Millman Cc: Postgres General Subject: Re: [GENERAL] Joining 16 tables seems slow Chris Travers wrote: On Tue, Sep 12, 2017 at 3:15 PM, Frank Millman wrote: 2017-09-12 12:39 GMT+02:00 Pavel Stehule : > please us