Greetings.
I'm building an app that is similar to phppgadmin, and I was trying to fetch wich tables some database has, so I was using this query:
SELECT TABLENAME FROM PG_TABLES WHERE TABLEOWNER = 'me'
Where "me" is, obviously, the user I'm using to do my connection with the db.
Well, I found out that altrough this query works perfectly in some apps (PGExplorer for an example) it doesn't on a PHP script...
I could connect with the "postgres" user, but I was trying to do something more opened, so I was wondering if any of you guys ever bumped into this problem and found a solution for this.
Thanks (really) in advance,