Re: Question about Encoding a Custom Type

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Question about Encoding a Custom Type
Date: 2008-06-16 09:52:40
Message-ID: 20080616095240.GB4792@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Jun 15, 2008 at 10:07:43PM -0700, David E. Wheeler wrote:
> Howdy,
>
> Possibly showing my ignorance here, but as I'm working on updating
> citext to be locale-aware and to work on 8.3, I've run into this
> peculiarity:

The only odd thing I see is the use of PG_ARGS to pass the arguments to
citextcmp. But I can't see why it would break either. Can you attach a
debugger and see where it goes wrong?

As to the comment about freeing stuff, it's usually nice if btree
comparison functions free memory because that way index rebuilds on
large tables don't run you out of memory.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mario Weilguni 2008-06-16 10:46:16 Crash in pgCrypto?
Previous Message Peter Eisentraut 2008-06-16 09:47:21 Re: TODO Item: Allow pg_hba.conf to specify host names along with IP addresses