If I do something like that, psql claims:

ERROR: unexpected SELECT query in exec_stmt_execsql()

why? How do I do this?

-- 
 Turbo     __ _     Debian GNU     Unix _IS_ user friendly - it's just 
 ^^^^^    / /(_)_ __  _   ___  __  selective about who its friends are 
         / / | | '_ \| | | \ \/ /   Debian Certified Linux Developer  
  _ /// / /__| | | | | |_| |>  <  Turbo Fredriksson   turbo@tripnet.se
  \\\/  \____/_|_| |_|\__,_/_/\_\ Stockholm/Sweden

iodine NORAD Saddam Hussein Ft. Bragg colonel assassination Honduras
$400 million in gold bullion Nazi killed Rule Psix World Trade Center
radar plutonium explosion
[See http://www.aclu.org/echelonwatch/index.html for more about this]

26 Jul 2001 12:46:16 +0200
Turbo Fredriksson <turbo@bayour.com>
plpgsql: 'SELECT * FROM tbl'