Is there any way to (without a separate count query first) to know the number of rows returned in a: for x in select ... Loop ... End Loop structure? -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general