From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Hannu Krosing <hannu(at)trust(dot)ee> |
Cc: | Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>, Postgres Hackers List <hackers(at)postgreSQL(dot)org> |
Subject: | Re: [HACKERS] I don't like LIKE |
Date: | 1999-06-08 21:17:17 |
Message-ID: | 199906082117.RAA04981@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> > Please post example. Works here:
> >
> > select * from pg_class where rename like '2';
>
> Maybe he meant something like this (using 6.4.2)
>
> hannu=> \d t
>
> Table = t
> +----------------------------------+----------------------------------+-------+
> | Field | Type |
> Length|
> +----------------------------------+----------------------------------+-------+
> | i | int4
> | 4 |
> +----------------------------------+----------------------------------+-------+
> hannu=> create index indx on t(i);
> CREATE
> hannu=> vacuum;
> VACUUM
> hannu=> select * from t where i like '1';
> ERROR: pg_atoi: error in "1_": can't parse "_"
> hannu=>
Can't reproduce:
test=> create table tx(i int);
CREATE
test=> create index xx on tx(i);
CREATE
test=> select * from tx where i like '3';
i
-
(0 rows)
test=> vacuum;
VACUUM
test=> select * from tx where i like '3';
i
-
(0 rows)
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Vadim Mikheev | 1999-06-08 21:45:04 | Re: [HACKERS] Re: Release schedule |
Previous Message | Bruce Momjian | 1999-06-08 21:14:59 | Re: Release schedule |