Re: Select * is very slow - Mailing list pgsql-performance

From Pierre C
Subject Re: Select * is very slow
Date
Msg-id op.vlu7j3h2eorkce@apollo13
Whole thread Raw
In response to Select * is very slow  ("shaiju.ck" <shaiju.ck@gmail.com>)
List pgsql-performance
> The table have 200 records now.
> Select * from employee takes 15 seconds to fetch the data!!!
> Which seems to be very slow.
> But when I say select id,name from empoyee it executes in 30ms.

30 ms is also amazingly slow for so few records and so little data.

- please provide results of "EXPLAIN ANALYZE SELECT id FROM table"
- huge bloat (table never vacuumed ?) => VACUUM VERBOSE
- bad network cable, network interface reverting to 10 Mbps, badly
configured network, etc ? (test it and test ping to server, throughput,
etc)
- server overloaded (swapping, etc) ? (vmstat, iostat, top, etc)

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Defaulting wal_sync_method to fdatasync on Linux for 9.1?
Next
From: Justin Pitts
Date:
Subject: Re: Select * is very slow