Do the same from your "psql". Compare the output. Are you 110% sure that you are connecting to the same database, as the same user, and using the same schema?
> No, it is connecting to localhost, which is the same system I am > running psql on. > > Susan > Well, if one query is logged and the other one is not it means that it is running against different servers (as far as I understand logging)....
Maybe psql is connecting using one socket and perl using another one? maybe you have 2 instances running?