Re: [GENERAL] WAL file accumulation on log shipping primary node

2011-12-13 Thread Dave Cramer
Dong, Once the wal_copy command completes the primary is free to handle the wal logs as it sees fit. Is it possible that rsync is getting behind ? Dave Cramer dave.cramer(at)credativ(dot)ca http://www.credativ.ca On Mon, Dec 12, 2011 at 11:28 PM, Dong Han wrote: > Dave, > > The WAL files wer

[GENERAL] order of (escaped) characters in regex range

2011-12-13 Thread InterRob
Dear List, I found this interesting: SELECT regexp_matches('123-A' , E'(3[A-Z\- ])'); ERROR: invalid regular expression: invalid character range whereas: SELECT regexp_matches('123-A' , E'(3[\- A-Z])'); regexp_matches {3-} (1 row) Notice the order of (escaped) characters and

Re: [GENERAL] order of (escaped) characters in regex range

2011-12-13 Thread Szymon Guz
On 13 December 2011 14:04, InterRob wrote: > Dear List, > > I found this interesting: > > SELECT regexp_matches('123-A' , E'(3[A-Z\- ])'); > ERROR: invalid regular expression: invalid character range > > whereas: > SELECT regexp_matches('123-A' , E'(3[\- A-Z])'); > regexp_matches >

Re: [GENERAL] order of (escaped) characters in regex range

2011-12-13 Thread InterRob
True, but still weird... And are you sure it does the same thing? 2011/12/13 Szymon Guz > > > On 13 December 2011 14:04, InterRob wrote: > >> Dear List, >> >> I found this interesting: >> >> SELECT regexp_matches('123-A' , E'(3[A-Z\- ])'); >> ERROR: invalid regular expression: invalid charact

Re: [GENERAL] order of (escaped) characters in regex range

2011-12-13 Thread David Johnston
On Dec 13, 2011, at 8:09, Szymon Guz wrote: > > > On 13 December 2011 14:04, InterRob wrote: > Dear List, > > I found this interesting: > > SELECT regexp_matches('123-A' , E'(3[A-Z\- ])'); > ERROR: invalid regular expression: invalid character range > > whereas: > SELECT regexp_matches('12

Re: [GENERAL] order of (escaped) characters in regex range

2011-12-13 Thread InterRob
Thanks guys, i see what you mean. I do intend to use the PG escaping, in order to avoid that annoying warning... Hence, my expression should indeed be: SELECT regexp_matches('123-A' , E'(3[A-Z\\-\\(\\) ])'); In the above expression i added the parentheses as I whish to match these as well :)) Th

Re: [GENERAL] order of (escaped) characters in regex range

2011-12-13 Thread hubert depesz lubaczewski
On Tue, Dec 13, 2011 at 02:51:15PM +0100, InterRob wrote: > Thanks guys, i see what you mean. > > I do intend to use the PG escaping, in order to avoid that annoying > warning... Hence, my expression should indeed be: > SELECT regexp_matches('123-A' , E'(3[A-Z\\-\\(\\) ])'); > > In the above expr

Re: [GENERAL] Having Issue Getting the Postgresql Service to Start

2011-12-13 Thread Sogard, Michael (DPS)
Removing the administrator rights worked and the service is now able to start over the domain. Thanks for the help! From: Craig Ringer [mailto:ring...@ringerc.id.au] Sent: Monday, December 12, 2011 5:48 PM To: Sogard, Michael (DPS) Cc: Sachin Srivastava; pgsql-general@postgresql.org Subject: Re:

Re: [GENERAL] order of (escaped) characters in regex range

2011-12-13 Thread Merlin Moncure
On Tue, Dec 13, 2011 at 7:51 AM, InterRob wrote: > Thanks guys, i see what you mean. > > I do intend to use the PG escaping, in order to avoid that annoying > warning... Hence, my expression should indeed be: > SELECT regexp_matches('123-A' , E'(3[A-Z\\-\\(\\) ])'); > > In the above expression i a

Re: [GENERAL] order of (escaped) characters in regex range

2011-12-13 Thread David Johnston
-Original Message- From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of Merlin Moncure Sent: Tuesday, December 13, 2011 11:39 AM To: r...@marjot-multisoft.com Cc: David Johnston; Szymon Guz; pgsql-general Subject: Re: [GENERAL] order of (escaped)

Re: [GENERAL] initdb with lc-collate=C

2011-12-13 Thread Scot Kreienkamp
Thanks Tom. I had tried it with SU before I mailed the list and it didn't work. When I tried it again, I noticed that I typed a lower case C which it wouldn't accept. I tried it again with an upper case C and it worked. That's probably why my first attempt with SU failed and I didn't catch t

Re: [GENERAL] order of (escaped) characters in regex range

2011-12-13 Thread Merlin Moncure
On Tue, Dec 13, 2011 at 10:53 AM, David Johnston wrote: > Aside from backward compatibility, and the various warnings, is there any > reason to prefer dollar-quoting over a non-SQL-escaped string literal (i.e., > '3[A-Z\-\(\) ]'   ) ? yeah -- because sooner or later you have to stick a single quo

Re: [GENERAL] order of (escaped) characters in regex range

2011-12-13 Thread Rob Marjot
True, but still weird... And are you sure it does the same thing? 2011/12/13 Szymon Guz > > > On 13 December 2011 14:04, InterRob wrote: > >> Dear List, >> >> I found this interesting: >> >> SELECT regexp_matches('123-A' , E'(3[A-Z\- ])'); >> ERROR: invalid regular expression: invalid charact

[GENERAL] query for all values linked to a field

2011-12-13 Thread anisoptera
hi, i'm trying to output all values that can be reached from a specific record by a foreign key link. for example, if tblimage has image_id, image_info and tblstack has stack_id=tblimage.image_id, stack_info_1, stack_info_2 i want to be able to get image_id, image_info, stack_info_1, stack_info_2

Re: [GENERAL] query for all values linked to a field

2011-12-13 Thread Merlin Moncure
On Tue, Dec 13, 2011 at 2:37 PM, anisoptera wrote: > hi, > > i'm trying to output all values that can be reached from a specific record > by a foreign key link. > > for example, if tblimage has image_id, image_info and tblstack has > stack_id=tblimage.image_id, stack_info_1, stack_info_2 > i want

Re: [GENERAL] query for all values linked to a field

2011-12-13 Thread anisoptera
Merlin Moncure-2 wrote > > > I didn't quite parse that.Using recursive queries, it should be > able to pretty easily query out, given a table name, all tables that > link to that table and the columns of the keys in the constraints > (and, if necessary, the links from other tables to those t

Re: [GENERAL] Controlling complexity in queries

2011-12-13 Thread Jay Levitt
Merlin Moncure wrote: Breaking your large queries into functions OTOH can make significant changes to the plan, often to the worse. As an end-user, I think this is an area where PostgreSQL could really stand out (that and the moon launch). In Rails-land, you don't have The DBA that writes qu

Re: [GENERAL] Hope for a new PostgreSQL era?

2011-12-13 Thread Greg Smith
On 12/12/2011 10:33 PM, Jayadevan M wrote: But I miss all those user-friendly trouble-shooting utilities (like Automatic Workload Repository,Active Session History etc etc) in PostgreSQL. Yes - some of them are there, but one has to search,download, configure etc. I hope many of these features

[GENERAL] PGDay.SoCal @ SCALE 10X

2011-12-13 Thread Joe Conway
PGDay.SoCal is scheduled at this year's Southern California Linux Exposition (SCALE10X) held in the LAX Hilton Hotel in the city of Los Angeles, California, USA, on Friday January 20th, 2012. Talks are designed for a general audience of web developers, sysadmins, DBAs and open source users. Talks

[GENERAL] PGDay.SoCal @ SCALE 10X

2011-12-13 Thread joe . conway
This message has been digitally signed by the sender. _GENERAL__PGDay_SoCal___SCALE_10X.eml Description: Binary data - Hi-Tech Gears Ltd, Gurgaon, India -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription:

[GENERAL] Question about HoT updates and conditional indexes

2011-12-13 Thread Maxim Boguk
Lets assume I have a table with an index defined as: create index test_key on test_table(mtime) where status=1; Will be update such as: update test_table set mtime=NOW() where id=10; threated as HOT update if the entry with id=10 have status=0 ? That update seems valid one for using HOT, however

Re: [GENERAL] Having Issue Getting the Postgresql Service to Start

2011-12-13 Thread Craig Ringer
On 14/12/2011 12:10 AM, Sogard, Michael (DPS) wrote: Removing the administrator rights worked and the service is now able to start over the domain. Thanks for the help! Glad to hear it. I'm inclined to think Pg needs a better error message in the logs and/or to emit a service log warning

[GENERAL] Postgresql connect into windows server

2011-12-13 Thread Yuriy Rusinov
Hello, All ! I have 2 machines with Gentoo Linux its ip is 192.168.17.109 and Windows XP ip is 192.168.17.124 Postgresql 9.0.1 was installed on both machines. If I connect from Windows machine onto Linux machine all works fine. pg_hba.conf on linux machine is local all all

Re: [GENERAL] Postgresql connect into windows server

2011-12-13 Thread John R Pierce
On 12/13/11 9:27 PM, Yuriy Rusinov wrote: But pg_admin on windows successfully works on both servers. Any ideas ? is a windows firewall blocking incoming connections on port 5432/tcp ? -- john r pierceN 37, W 122 santa cruz ca mid-left co

Re: [GENERAL] Postgresql connect into windows server

2011-12-13 Thread Yuriy Rusinov
Hello ! >> >> But pg_admin on windows successfully works on both servers. >> Any ideas ? > > > is a windows firewall blocking incoming connections on port 5432/tcp ? > Possible yes, but which way I have to verify it ? -- Best regards, Sincerely yours, Yuriy Rusinov. -- Sent via pgsql-general

[GENERAL]: streaming replication on PG-9.1.1

2011-12-13 Thread Venkat Balaji
Hello, We have configured "streaming replication" (not synchronous) for our production in PG-9.1.1. Replication is working fine, we can see the transactions getting replicated without any issues. I see the below problem - pg_stat_replication on master shows no rows all the time.. ps -Af | grep

Re: [GENERAL] Postgresql connect into windows server

2011-12-13 Thread David Johnston
On Dec 14, 2011, at 0:40, Yuriy Rusinov wrote: > Hello ! > >>> >>> But pg_admin on windows successfully works on both servers. >>> Any ideas ? >> >> >> is a windows firewall blocking incoming connections on port 5432/tcp ? >> > > Possible yes, but which way I have to verify it ? > > Turn

[GENERAL] when was pg_stat_reset() used in my server for the last time

2011-12-13 Thread AI Rumman
Is it possible to find out, when was pg_stat_reset() used in my server for the last time? I am using Postgresql 9.2 and I need to find out unused index.