When accessing Postgres boolean fields (in the TD dictionaries) in plpythonu, their values are '0' or '1'. IIRC, in PHP their values would be 't' or 'f'. How are boolean values actually stored in Postgres? CSN Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq