[HACKERS] string_to_array eats too much memory?

2006-11-07 Thread Tatsuo Ishii
Hi, I'm playing with GIN to make a full text search system. GIN comes with built-in TEXT[] support and I use string_to_array() to make a TEXT[]. Problem is, if there's large number of array elemets, string_to_array() consumes too much memory. For example, to make ~70k array elements, string_to_arr

Re: [HACKERS] Block B-tree etc. (was Re: Introducing an advanced Frequent

2006-11-07 Thread Luke Lonergan
Heikki, On 11/7/06 1:51 AM, "Heikki Linnakangas" <[EMAIL PROTECTED]> wrote: > I don't think Simon's proposal is meant to address that issue, but did > you follow the thread I started in September about Block B-Tree index: > http://archives.postgresql.org/pgsql-hackers/2006-09/msg02041.php Aha -

Re: [HACKERS] Uncleared result sets in describeOneTableDetails()

2006-11-07 Thread Neil Conway
On Tue, 2006-11-07 at 17:56 +1100, Brendan Jurd wrote: > Should be just six extra lines (patch attached, untested). Applied to HEAD, with an additional fix: you need to clear "result5" as well. I didn't bother applying it to backbranches, on the grounds that a memory leak in psql is not serious.

Re: [HACKERS] [PATCHES] Bug in WAL backup documentation

2006-11-07 Thread Bruno Wolff III
On Sun, Nov 05, 2006 at 11:49:36 -0500, Tom Lane <[EMAIL PROTECTED]> wrote: > > As already discussed upthread, anyone who wants the path can get it from > `pwd` or local equivalent --- and that mechanism is robust (as long as > the directory move doesn't happen while any particular instance of t

Re: [HACKERS] Index ignored with "is not distinct from", 8.2 beta2

2006-11-07 Thread JEAN-PIERRE PELLETIER
I can see that adding null to indexes would allow all cases of "is not distinct from" to use them. The lack of null in indexes would explain why a condition such as "col is not distinct from null" would not pick up an index. But my example was: "col is not distinct from 123" and the equivalen

Re: [HACKERS] Index ignored with "is not distinct from", 8.2 beta2

2006-11-07 Thread Martijn van Oosterhout
On Tue, Nov 07, 2006 at 02:12:29PM -0600, Jim C. Nasby wrote: > I assume you're referring to > http://archives.postgresql.org/pgsql-patches/2005-09/msg00083.php ? > > I'm curious as to the status of that patch... presumably it never made > it into the queue, but I'm not sure why since you seemed t

Re: [HACKERS] Index ignored with "is not distinct from", 8.2 beta2

2006-11-07 Thread Jim C. Nasby
On Tue, Nov 07, 2006 at 11:03:42AM +0100, Martijn van Oosterhout wrote: > On Mon, Nov 06, 2006 at 09:10:40PM -0500, JEAN-PIERRE PELLETIER wrote: > > I understand that the planner doesn't use indexes for IS NOT DISTINCT FROM, > > but it would > > be good because "is not distinct from" is very usefu

Re: [HACKERS] 8.2 Beta 3 Now Available for Download / Testing ...

2006-11-07 Thread Andrew Dunstan
Marc G. Fournier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As a result of there being two *known* outstanding bugs, we have just bundled up a Beta3, to allow for testing of the recent patch concerning WAL replay ... Please download the latest beta from: ftp.postgresql.org:

[HACKERS] 8.2 Beta 3 Now Available for Download / Testing ...

2006-11-07 Thread Marc G. Fournier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As a result of there being two *known* outstanding bugs, we have just bundled up a Beta3, to allow for testing of the recent patch concerning WAL replay ... Please download the latest beta from: ftp.postgresql.org:/pub/source/v8.2beta While

Re: [HACKERS] Block B-tree etc. (was Re: Introducing an advanced Frequent Update)

2006-11-07 Thread Josh Berkus
Luke, > That's our plan to achieve speedups that other DBMS's have achieved with > Index-Organized-Tables or Clustered Indexes. We're running initial > performance tests of it as we speak, and if all goes well we're hoping > to get that into PostgreSQL 8.3. Also, if the EDB folks weren't clear, t

Re: [HACKERS] Found a bug

2006-11-07 Thread Gurjeet Singh
Thanks for the references.Note for future: should have tried VACUUM too.On 11/7/06, Tom Lane <[EMAIL PROTECTED] > wrote:"Gurjeet Singh" < [EMAIL PROTECTED]> writes:> Please refer the following session snippet. It seems that creating and> dropping an index on a table, within a transaction, leave

Re: [HACKERS] Found a bug

2006-11-07 Thread Tom Lane
"Gurjeet Singh" <[EMAIL PROTECTED]> writes: > Please refer the following session snippet. It seems that creating and > dropping an index on a table, within a transaction, leaves the table marked > as having an index. This isn't a bug. Refer to catalogs.sgml: relhasindex True if this

Re: [HACKERS] Found a bug

2006-11-07 Thread Richard Huxton
Gurjeet Singh wrote: Hi All, Please refer the following session snippet. It seems that creating and dropping an index on a table, within a transaction, leaves the table marked as having an index. Although, I don't think it's a serious bug, since we always retrieve the list using RelationGetIn

[HACKERS] Found a bug

2006-11-07 Thread Gurjeet Singh
Hi All,    Please refer the following session snippet. It seems that creating and dropping an index on a table, within a transaction, leaves the table marked as having an index. Although, I don't think it's a serious bug, since we always retrieve the list using RelationGetIndexList(), and that list

Re: [HACKERS] Uncleared result sets in describeOneTableDetails()

2006-11-07 Thread Neil Conway
On Tue, 2006-11-07 at 17:56 +1100, Brendan Jurd wrote: > It certainly isn't pretty. It's been a long time since I looked down > the barrel of a 'goto'. I don't think there's anything wrong with using "goto" for error handling in this style. Personally, I think the main stylistic problem is that t

Re: [HACKERS] Index ignored with "is not distinct from", 8.2 beta2

2006-11-07 Thread Martijn van Oosterhout
On Mon, Nov 06, 2006 at 09:10:40PM -0500, JEAN-PIERRE PELLETIER wrote: > I understand that the planner doesn't use indexes for IS NOT DISTINCT FROM, > but it would > be good because "is not distinct from" is very useful when you have nulls > but don't want to use three value logic. The main issu

[HACKERS] Block B-tree etc. (was Re: Introducing an advanced Frequent Update)

2006-11-07 Thread Heikki Linnakangas
Luke Lonergan wrote: Simon, Bring it on! We at GP have been evaluating various approaches to index organized tables which unify index with heap storage to solve some of the problems you mention. Split index and heap is a big issue in Postgres and we'd all welcome a good solution to it, even fo