Re: Performance Issues

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Performance Issues
Дата
Msg-id 20030908131319.GB14906@wolff.to
обсуждение исходный текст
Ответ на Performance Issues  ("Ravi T Ramachandra" <ravi.ramachandra@wipro.com>)
Список pgsql-admin
On Mon, Sep 08, 2003 at 11:43:42 +0530,
  Ravi T Ramachandra <ravi.ramachandra@wipro.com> wrote:
>
> SELECT * FROM TABLE A WHERE COL1 = 1 AND COL2 = 'ABC'.
>
> We have created index definition as follows
>
> CREATE INDEX IDX ON A(COL1, COL2);
>
> Explain on the above statement shows it is sequential scan.   The
> process size for the postmaster shows as 4MB (is this normal ?)

While Nathan's advice may be useful for you, it probably isn't causing the
problem you are seeing. Your problem is most likely that COL isn't
an INTEGER (aka INT or INT4). Try using single quotes around '1'.

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Problem about Backup
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Are 50 million rows a problem for postgres ?