Re: [GENERAL] Default timezone changes in 9.1

2012-12-22 Thread Robert Treat
On Sat, Dec 22, 2012 at 3:41 AM, Jasen Betts wrote: > On 2012-12-16, Terence Ferraro wrote: > >> With the exception of a few parameters (max_connections and the ssl related >> variables that we enable), the default configuration file (circa 9.0) has >> worked extremely well across 100+ machines s

[GENERAL] Insert Assertion Failed in strcoll_l.c:112

2012-12-22 Thread Michael Arnold
Hi, The following is written to /var/log/postgresql/postgresql-9.1-main.log: 127.0.0.1(59800) INSERT: strcoll_l.c:112: __strcoll_l: Assertion `((uintptr_t) indirect) % __alignof__ (indirect[0]) == 0' failed. 2012-12-23 08:54:54 SGT LOG: server process (PID 1964) was terminated by signal 6: Abo

Re: [GENERAL] Using POSIX Regular Expressions on xml type fields gives inconsistent results

2012-12-22 Thread David Johnston
> >> There's a much easier fix to this problem though, which is to invent > >> a "reverse ~" operator that does POSIX comparison with the pattern on > >> the left. The hardest part of doing that for yourself is choosing a > >> name for the reverse operator --- it just goes like > >> > >> create fu

Re: [GENERAL] Using POSIX Regular Expressions on xml type fields gives inconsistent results

2012-12-22 Thread hamann . w
>> >> "David Johnston" writes: >> > [optionally go look at " ~* " in the documentation at this point; or just >> > try a simple flip-flop of the expression] >> >> > SELECT 'Kumar' ~* 'kuma' -> TRUE !!! (ah ha! I had the order reversed) >> >> > SELECT any( ARRAY['Kumar','Gozales']::text ) ... wa

Re: [GENERAL] Question on Trigram GIST indexes

2012-12-22 Thread Kevin Grittner
ERR ORR wrote: > Specifically, I was trying to replicate what is done in this blog post: > http://www.postgresonline.com/journal/archives/212-PostgreSQL-9.1-Trigrams-teaching-LIKE-and-ILIKE-new-tricks.html > Queries which use "WHERE "TST_PAYLOAD" LIKE 'SEAT%'" go to the btree index > as it should

Re: [GENERAL] rule / trigger definition

2012-12-22 Thread Adrian Klaver
On 12/22/2012 07:32 AM, Philipp Kraus wrote: Hello, I'm aktually create a database with postgres, but I'm a long time out-of-date working with Postgres (I think I have worked last time with PG 5.4), so I need some help to create a working trigger / rule solution: I have got a master table and

Re: [GENERAL] dump order by

2012-12-22 Thread Adrian Klaver
On 12/22/2012 09:29 AM, jo wrote: Hi all, I would like to know if it is possible to dump a table ordered by its primary key. Take a look at the this test table... \d test Table "public.test" Column| Type | Modifiers ---+-+---

Re: [GENERAL] dump order by

2012-12-22 Thread salah jubeh
Hello, Did you try to set the constraints as deferrable i.e. begin; set constraints all deferred; ... commit; Also, you can set this by forign key , have a look on http://www.postgresql.org/docs/9.0/static/sql-createtable.html Regards From: jo To: p

[GENERAL] dump order by

2012-12-22 Thread jo
Hi all, I would like to know if it is possible to dump a table ordered by its primary key. Take a look at the this test table... \d test Table "public.test" Column| Type | Modifiers ---+-+--- id

[GENERAL] rule / trigger definition

2012-12-22 Thread Philipp Kraus
Hello, I'm aktually create a database with postgres, but I'm a long time out-of-date working with Postgres (I think I have worked last time with PG 5.4), so I need some help to create a working trigger / rule solution: I have got a master table and a slave table (1:N). The master table create a

[GENERAL] Question on Trigram GIST indexes

2012-12-22 Thread ERR ORR
I was trying to make Postgresql use a trigram gist index on a varchar field, but to no avail. Specifically, I was trying to replicate what is done in this blog post: http://www.postgresonline.com/journal/archives/212-PostgreSQL-9.1-Trigrams-teaching-LIKE-and-ILIKE-new-tricks.html I use Postgresq

Re: [GENERAL] Any experience with Drobo SAN and PG?

2012-12-22 Thread Jasen Betts
On 2012-12-17, Michael Nolan wrote: > I'm looking to spec a new production server for a small client and > have been looking at the Drobo SAN units. > > Has anybody run PG on one of these yet? Drobo has, some of them run postgresql internally. -- ⚂⚃ 100% natural -- Sent via pgsql-general ma

Re: [GENERAL] Default timezone changes in 9.1

2012-12-22 Thread Jasen Betts
On 2012-12-16, Terence Ferraro wrote: > With the exception of a few parameters (max_connections and the ssl related > variables that we enable), the default configuration file (circa 9.0) has > worked extremely well across 100+ machines so far over the last two years > and counting. However, we a

[GENERAL] Re: [COMMITTERS] pgsql: Allow a streaming replication standby to follow a timeline switc

2012-12-22 Thread hubert depesz lubaczewski
On Thu, Dec 20, 2012 at 02:50:12PM +0200, Heikki Linnakangas wrote: > Hmm, that's a different error than you got before. Thom also > reported a "requested WAL segment ... has already been removed" > error, but in his test case, and as far as I could reproduce it, the > error doesn't reoccur when th

Re: [GENERAL] Simple Query Very Slow

2012-12-22 Thread Andres Freund
On 2012-12-22 13:06:21 +0100, Alban Hertroys wrote: > > and here's my query > > > > select * from ticket > > where created between '2012-12-19 00:00:00' and '2012-12-20 00:00:00' > > > > This was working fine until the number of records started to grow (about 5 > > million) and now it's taking fo

Re: [GENERAL] Simple Query Very Slow

2012-12-22 Thread Alban Hertroys
> and here's my query > > select * from ticket > where created between '2012-12-19 00:00:00' and '2012-12-20 00:00:00' > > This was working fine until the number of records started to grow (about 5 > million) and now it's taking forever to return. > > Explain analyze reveals this: > > "Inde

Re: [GENERAL] Coalesce bug ?

2012-12-22 Thread jg
Hi, > Ah. The reason for that is a bit subtle: constant-folding of immutable > functions happens in the same pass over the query tree as simplification > of simplifiable constructs --- including COALESCE. So what's happening > is that eval_const_expressions, working on the COALESCE construct, fi

Re: [GENERAL] Streaming replication + pgpool-II tutorial

2012-12-22 Thread Tatsuo Ishii
Probably this is not the right forum. You'd better to subscribe and post to pgpool-general list. http://www.pgpool.net/mailman/listinfo/pgpool-general -- Tatsuo Ishii SRA OSS, Inc. Japan English: http://www.sraoss.co.jp/index_en.php Japanese: http://www.sraoss.co.jp > Hi Tatsuo Ishii, > > I am v