Re: Using textin/textout vs. scribbling around

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Using textin/textout vs. scribbling around
Date: 2001-08-13 23:07:51
Message-ID: 13734.997744071@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> I am tempted to replace all attempts to build text data on your own (with
> VARDATA, VARHDRSZ, etc.) with proper calls to textin/textout in all places
> that can't claim to be truly internal (especially all contrib).

Other than contrib, what places do you have in mind?

> The background is that the internal format might change sometime when
> more locale features are implemented (see recent idea). Is this a
> good idea?

Not sure. The I/O interface --- specifically the dependency on
null-terminated strings --- isn't necessarily graven on stone tablets
either. It could end up that this change adds more future work rather
than preventing it.

I'd be inclined to wait until we actually do change the internal
representation of text, if we do so, before expending this effort.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-08-13 23:13:29 Re: PostGIS spatial extensions
Previous Message Dave Blasby 2001-08-13 22:57:10 Re: PostGIS spatial extensions