Re: BUG #2236: extremely slow to get unescaped bytea data from db - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #2236: extremely slow to get unescaped bytea data from db
Date
Msg-id 20060204222156.GA24302@surnet.cl
Whole thread Raw
In response to BUG #2236: extremely slow to get unescaped bytea data from db  ("Kai Ronan" <support@kalador.com>)
Responses Re: BUG #2236: extremely slow to get unescaped bytea data
List pgsql-bugs
Kai Ronan wrote:

>  // Get the bytea data
>  $res = pg_query("SELECT data FROM image WHERE name='big.gif'");

Do you have an index in the image.name column?  What does an

EXPLAIN ANALYZE SELECT data FROM image WHERE name='big.gif'

say?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-bugs by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: BUG #2225: Backend crash -- BIG table
Next
From: Tom Lane
Date:
Subject: Re: BUG #2237: SELECT optimizer drops everything improperly