Re: [GENERAL] Re: pg_dump 8.4.9 failing after upgrade to openssl-1.0.1e-30.el6_6.11.x86_64 on redhat linux

2015-06-22 Thread Tom Lane
I wrote: >> I'm going to file this as a bug with Red Hat. In the meantime it looks >> like we can suggest ssl_renegotiation_limit = 0 as a temporary workaround. > Done at > https://bugzilla.redhat.com/show_bug.cgi?id=1234487 BTW, we should not feel too awful, because it seems this same update ha

Re: [GENERAL] Run analyze on schema

2015-06-22 Thread Jerry Sievers
Suresh Raja writes: > Hi All: > > Does postgresql support schema analyze.  I could not find > analyze schema anywhere.  Can we create a function to run > analyze and reindex on all objects in the schema.  Any > suggestions or ideas. Yes "we" certainly can... begin; c

Re: [GENERAL] How to speed up pg_trgm / gin index scan

2015-06-22 Thread Oleg Bartunov
Try 9.4 and you'll surprise. 1. GIN has compression 2. GIN has fast scan feature. Oleg On Mon, Jun 22, 2015 at 7:51 AM, Christian Ramseyer wrote: > Hi > > I have a pretty large table with syslog messages. > > It is already partitioned by month, and for a single month I have e.g. > > > DM=# \d+

Re: [GENERAL] How to speed up pg_trgm / gin index scan

2015-06-22 Thread Jeff Janes
On Mon, Jun 22, 2015 at 10:39 AM, Christian Ramseyer wrote: > On 22/06/15 19:00, Jeff Janes wrote: > > > > > > > A typical query on this table looks like this: > > > > explain analyze > > select log_date, host, msg > > from logs_01 as log where log.msg like '%192.23.33.177%' >

[GENERAL] Run analyze on schema

2015-06-22 Thread Suresh Raja
> > Hi All: > > Does postgresql support schema analyze. I could not find analyze schema > anywhere. Can we create a function to run analyze and reindex on all > objects in the schema. Any suggestions or ideas. > > Thanks, > -Suresh Raja >

Re: [GENERAL] extracting PII data and transforming it across table.

2015-06-22 Thread Suresh Raja
Hi All: Does postgresql support schema analyze. I could not find analyze schema anywhere. Can we create a function to run analyze and reindex on all objects in the schema. Any suggestions or ideas. Thanks, -Suresh Raja

Re: [GENERAL] How to speed up pg_trgm / gin index scan

2015-06-22 Thread Jaime Casanova
On Mon, Jun 22, 2015 at 6:51 AM, Christian Ramseyer wrote: > > DM=# \d+ logs_01 > > Column|Type | > --+-+ > host | character varying(255) | > facility | character varying(10) | > priority | charac

Re: [GENERAL] How to speed up pg_trgm / gin index scan

2015-06-22 Thread Christian Ramseyer
On 22/06/15 19:00, Jeff Janes wrote: > > > A typical query on this table looks like this: > > explain analyze > select log_date, host, msg > from logs_01 as log where log.msg like '%192.23.33.177%' > and log.log_date >= '2015-1-18 1:45:24' > and log.log_date

Re: [GENERAL] foreign keys to foreign tables

2015-06-22 Thread Rick Otten
Thanks Will! I had been considering setting up replication (using SymmetricDS - which we already use between other databases in our environment), but decided for this one check it was too much trouble. I may change my mind on that point again after all if I end up with a lot of dependencies like

Re: [GENERAL] foreign keys to foreign tables

2015-06-22 Thread Rick Otten
Obviously the server will be able to delete those rows because it will be completely unaware of this dependency. So it is the implied reverse constraint (of sorts) that can't be enforced which makes an FK based definition impossible. For my particular use case, this shouldn't be a problem. The f

Re: [GENERAL] foreign keys to foreign tables

2015-06-22 Thread William Dunn
Hello Rick, As I understand it you are correct. Oracle/DB2/Postgres and I think the SQL Standards to not implement constraints against tables on foreign servers. Although it would be possible to develop the DBMS to handle such constraints in a heterogeneous distributed environment it would be unwi

Re: [GENERAL] How to speed up pg_trgm / gin index scan

2015-06-22 Thread Jeff Janes
On Mon, Jun 22, 2015 at 4:51 AM, Christian Ramseyer wrote: > Hi > > I have a pretty large table with syslog messages. > > It is already partitioned by month, and for a single month I have e.g. > > > DM=# \d+ logs_01 > > Column|Type | > --+--

Re: [GENERAL] foreign keys to foreign tables

2015-06-22 Thread Tom Lane
Rick Otten writes: > Hello pgsql-general, > I'd like to set up a foreign key constraint to a foreign table from a local > table. > ie, I have a column in a local table that I'd like to ensure has a value in > the foreign table. > alter mytable > add column some_column_id uuid references myfor

Re: [GENERAL] Re: pg_dump 8.4.9 failing after upgrade to openssl-1.0.1e-30.el6_6.11.x86_64 on redhat linux

2015-06-22 Thread Tom Lane
I wrote: > I'm going to file this as a bug with Red Hat. In the meantime it looks > like we can suggest ssl_renegotiation_limit = 0 as a temporary workaround. Done at https://bugzilla.redhat.com/show_bug.cgi?id=1234487 regards, tom lane -- Sent via pgsql-general maili

[GENERAL] foreign keys to foreign tables

2015-06-22 Thread Rick Otten
Hello pgsql-general, I'd like to set up a foreign key constraint to a foreign table from a local table. ie, I have a column in a local table that I'd like to ensure has a value in the foreign table. alter mytable add column some_column_id uuid references myforeigntable(some_column_id) ; Unfo

Re: [GENERAL] Re: pg_dump 8.4.9 failing after upgrade to openssl-1.0.1e-30.el6_6.11.x86_64 on redhat linux

2015-06-22 Thread Tom Lane
Albe Laurenz writes: > Piotr Gackiewicz wrote: >>> Douglas Stetner writes: Looking for confirmation there is an issue with pg_dump failing after upgrade to openssl-1.0.1e-30.el6_6.11.x86_64 on redhat linux. >> I have the same problem with fresh postgresql 9.2.13. >> Started after upgr

Re: [GENERAL] Less is More

2015-06-22 Thread Tom Lane
Paul Ramsey writes: > I have an odd performance quirk I wonder if anyone has any theories for… > (not a one-time result, table all heated up, etc) > spain=# explain analyze select way from planet_osm_point;               >                                          

[GENERAL] Less is More

2015-06-22 Thread Paul Ramsey
Hey all, I have an odd performance quirk I wonder if anyone has any theories for… (not a one-time result, table all heated up, etc) spain=# explain analyze select way from planet_osm_point;                                                         QUERY PLAN --

[GENERAL] How to speed up pg_trgm / gin index scan

2015-06-22 Thread Christian Ramseyer
Hi I have a pretty large table with syslog messages. It is already partitioned by month, and for a single month I have e.g. DM=# \d+ logs_01 Column|Type | --+-+ host |

Re: [GENERAL] Re: pg_dump 8.4.9 failing after upgrade to openssl-1.0.1e-30.el6_6.11.x86_64 on redhat linux

2015-06-22 Thread Albe Laurenz
Piotr Gackiewicz wrote: > Tom Lane wrote: >> Douglas Stetner writes: >>> Looking for confirmation there is an issue with pg_dump failing after >>> upgrade to openssl-1.0.1e-30.el6_6.11.x86_64 on redhat linux. >> >> Quick thought --- did you restart the Postgres service after upgrading >> openssl?

Re: [GENERAL] Postgresql 9.2 has standby server lost data?

2015-06-22 Thread Albe Laurenz
Paula Price wrote: > I have Postgresql 9.2.10 streaming replication set up with log shipping in > case the replication falls behind. I discovered that the log-shipping had > been disabled at some point in time. I enabled the log shipping again. > > If at some point in time the streaming replicat

Re: [GENERAL] INSERT a number in a column based on other columns OLD INSERTs

2015-06-22 Thread Albe Laurenz
Adrian Klaver wrote: > On 06/20/2015 12:41 PM, Charles Clavadetscher wrote: >> I just made a short test with the code provided. As Bill mentioned the >> moment when the trigger is fired is essential. >> I made a test with both before (worked) and after (did not work because >> the row was already i