Re: [GENERAL] Support for Foreign keys with arrays

2013-07-10 Thread itishree sukla
Thanks, not sure how to download and apply this patch, not getting any down load link. ? On Wed, Jul 10, 2013 at 9:16 AM, Michael Paquier michael.paqu...@gmail.comwrote: On Tue, Jul 9, 2013 at 6:26 PM, itishree sukla itishree.su...@gmail.com wrote: Hello Every one, I have a requirement

Re: [GENERAL] Support for Foreign keys with arrays

2013-07-10 Thread Michael Paquier
On Wed, Jul 10, 2013 at 3:10 PM, itishree sukla itishree.su...@gmail.com wrote: Thanks, not sure how to download and apply this patch, not getting any down load link. ? In the section Comments, some of the lines are referred by patch. Click on the latest one. You will be redirected to the email

[GENERAL] Removing duplicates

2013-07-10 Thread Johann Spies
I have used this method successfully on another table but this one is not working. I have a table of nearly 800 million records with some duplicates in. Here is an example: select rart_id, r9, ra, ry, rw, rv, rp, rs, ri from isi.rcited_ref where rart_id = 'A1986D733500019'; renders a result of

Re: [GENERAL] Force ssl connection

2013-07-10 Thread Muhammad Bashir Al-Noimi
On Tue, Jul 9, 2013 at 11:16 PM, Adrian Klaver adrian.kla...@gmail.com wrote: Where are you connecting from? If you are connecting locally using sockets(local above) or host(line 3,4,5 above) then you are bypassing ssl. I'm connecting from 192.168.0.74 and I commented line5 as following: local

Re: [GENERAL] Force ssl connection

2013-07-10 Thread Muhammad Bashir Al-Noimi
On Tue, Jul 9, 2013 at 11:21 PM, Jeff Janes jeff.ja...@gmail.com wrote: From your original email: db.setHostName(localhost); So localhost is probably matching 127.0.0.1/32 or ::1/128, which are explicitly allowed. I'm using this and still able to connect without SSL

[GENERAL] Single Line Query Logging

2013-07-10 Thread Emre ÖZTÜRK
Hello all, Is there a parameter to log any SQL query as a single line in audit logs? I have some problems in my SIEM application. If a DBA sends the query as a single line I can gather the whole query, but if he enters like UPDATE x ... y=Z .. where .. I

Re: [GENERAL] Force ssl connection

2013-07-10 Thread Magnus Hagander
On Wed, Jul 10, 2013 at 12:04 PM, Muhammad Bashir Al-Noimi mbno...@gmail.com wrote: On Tue, Jul 9, 2013 at 11:21 PM, Jeff Janes jeff.ja...@gmail.com wrote: From your original email: db.setHostName(localhost); So localhost is probably matching 127.0.0.1/32 or ::1/128, which are explicitly

Re: [GENERAL] Force ssl connection

2013-07-10 Thread Muhammad Bashir Al-Noimi
On Wed, Jul 10, 2013 at 12:16 PM, Magnus Hagander mag...@hagander.net wrote: requiressl=0 doesn't mean what you think it means, and that's one reason it has been deprecated since at least 8.2. requiressl=0 means negotiate. use ssl if the server asks for it, but accept not using ssl. So this

Re: [GENERAL] Computing count of intersection of two queries (Relational Algebra -- SQL)

2013-07-10 Thread Kevin Grittner
Robert James srobertja...@gmail.com wrote: In relational algebra, I have relation R and relation S, and want to find the cardinality of R, of S, and of R-intersect-S. I know the SQL for R and S.  What's the best way to compute the cardinality of each relation (query) and of their

Re: [GENERAL] Force ssl connection

2013-07-10 Thread Adrian Klaver
On 07/10/2013 03:20 AM, Muhammad Bashir Al-Noimi wrote: On Wed, Jul 10, 2013 at 12:16 PM, Magnus Hagander mag...@hagander.net wrote: requiressl=0 doesn't mean what you think it means, and that's one reason it has been deprecated since at least 8.2. requiressl=0 means negotiate. use ssl if the

Re: [GENERAL] dynamic partitioning

2013-07-10 Thread dafNi zaf
hello again! since there was a problem with my email and the reply was not sent, so I'm re-posting my reply.. Again.. the structure as I exported it from phpPgAdmin is: *-- My table 'foo' * *CREATE TABLE foo ( * *foo_id integer NOT NULL,* *blaa_id integer NOT NULL,* *blaa_num

Re: [GENERAL] Removing duplicates

2013-07-10 Thread Giuseppe Broccolo
Dear Johann, I tried (with PostgreSQL 9.2) to run the two DELETE statements you describe in your mail (the first based on the id field, the second on the ctid) and they work! I have to point out that if you use the DELETE based on the id field YOU'LL DELETE ALL RECORDS having at least one

Re: [GENERAL] Force ssl connection

2013-07-10 Thread Jeff Janes
On Wed, Jul 10, 2013 at 3:04 AM, Muhammad Bashir Al-Noimi mbno...@gmail.com wrote: On Tue, Jul 9, 2013 at 11:21 PM, Jeff Janes jeff.ja...@gmail.com wrote: From your original email: db.setHostName(localhost); So localhost is probably matching 127.0.0.1/32 or ::1/128, which are explicitly

Re: [GENERAL] function with unknown params

2013-07-10 Thread Kevin Grittner
giozh gi...@yahoo.it wrote: ok, it works. But why on error message i had that two unknown data type? if was an error on date type, why it don't signal that? Because PostgreSQL treats a quoted literal as being of unknown type -- each of these could have matched a parameter of any type, and

Re: [GENERAL] Removing duplicates

2013-07-10 Thread Ketana Patel
Hi, You can try following query on test database to remove duplicates. DELETE FROM isi.rcited_ref a     WHERE a.ctid (SELECT min(ctid) FROM isi.rcited_ref b   WHERE a.rart_id = b.rart_id       AND a.r9 = b.r9   AND a.ra = b.ra   AND a.ry = b.ry   AND a.rw =

Re: [GENERAL] Single Line Query Logging

2013-07-10 Thread Adrian.Vondendriesch
Hi Emre, Am 10.07.2013 12:16, schrieb Emre ÖZTÜRK: Hello all, Is there a parameter to log any SQL query as a single line in audit logs? I have some problems in my SIEM application. If a DBA sends the query as a single line I can gather the whole query, but if he enters like UPDATE x

[GENERAL] How to implement a value alias or synonym

2013-07-10 Thread Gauthier, Dave
Hi: v9.0.1 on linux Is there a way to query on synonyms of a value transparent to the user? For example, a column called animal can have any text value, including 'horse' and 'cow' and 'pig'. But I want the user to find all the animal='pig' records if they specify 'hog' instead. So..

Re: [GENERAL] How to implement a value alias or synonym

2013-07-10 Thread Carlos Oliva
http://www.postgresql.org/message-id/440d446e.7040...@cybertec.at From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of Gauthier, Dave Sent: Wednesday, July 10, 2013 3:49 PM To: pgsql-general@postgresql.org Subject: [GENERAL] How to implement a value

Re: [GENERAL] How to implement a value alias or synonym

2013-07-10 Thread Carlos Oliva
Also this: http://www.postgresql.org/docs/9.2/static/textsearch-configuration.html From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of Gauthier, Dave Sent: Wednesday, July 10, 2013 3:49 PM To: pgsql-general@postgresql.org Subject: [GENERAL] How to

[GENERAL] Can we specify transaction level when connectting to external postgresql server via postgres_fdw

2013-07-10 Thread guxiaobo1982
Hi, We are try to connect to Greenplum database from PostgreSQL 9.3 beta2 via postgres_fdw, but the Greenplum Database does not support REPEATABLE READ transactions, can we specify other isolation leves? Regards, Xiaobo Gu