Re: bug?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: bug?
Дата
Msg-id 20021112083212.E67144-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на bug?  ("John Liu" <johnl@synthesys.com>)
Список pgsql-bugs
On Tue, 12 Nov 2002, John Liu wrote:

> Hi, Tom,
> we're using version 7.2.
>
> I've a document table, the cdi column is indexed.
> I tried to do a query by using cdi in two ways -
>
> 1. the simple query as expected is using index scan
> edbs=# explain select emrxid from document where cdi='1031-15402';
> NOTICE:  QUERY PLAN:
>
> Index Scan using document_cdi_key on document  (cost=0.00..4.43 rows=1
> width=27)
>
> 2. the one using plsql function is not using index scan!
> EXPLAIN
> edbs=# explain select getEmrxid('1031-15402') from document;
> NOTICE:  QUERY PLAN:

These two queries don't do the same thing.
The first gets presumably one emrxid from the table at the particular row.
The second gets one copy of that emrxid from each row in document.
I think you want:
 select getEmrxid('1031-15402');

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "John Liu"
Дата:
Сообщение: bug?
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #814: ArrayIndexOutOfBoundsException with extended character data