Re: Like vs '=' bug with indexing

From: Hannu Krosing <hannu(at)tm(dot)ee>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: m w <mttf2000(at)yahoo(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Like vs '=' bug with indexing
Date: 2001-02-05 07:38:30
Message-ID: 3A7E5876.BAE49F45@tm.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
>
> Hannu Krosing <hannu(at)tm(dot)ee> writes:
> > Also I remember being told that bytea _can_ hold embedded \0, no ?
>
> Yes. What has that got to do with text et al?
>
> >> Possibly chr() should reject chr(0) ...
> >
> > there is no function chr() at least in 7.0.2.
>
> I think it used to be called ichar(), but then someone pointed out that
> Oracle calls it chr().
>
> > and char is not usable from psql (gives out strange errors);
>
> char(n) is a type name, not a function call.

\df list it as a function call taking either bpchar or text argument.

hannu=# \df
List of functions
Result | Function |
Arguments
---------------------+----------------------+------------------------------------------
...
char | char | bpchar
char | char | text
...

Maybe the cast functions (named similar to types) should be removed from
\df output
or at least marked as such, also in pg_proc?

------------
Hannu

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Karel Zak 2001-02-05 08:50:33 Re: Re: Format of the Money field
Previous Message Stephan Szabo 2001-02-05 07:32:50 Re: Foreign Key Columns And Indices