Thread: libpq question..

libpq question..

From
Kenneth Suralta
Date:
Hello everyone,

Does anybody know how to determine the user-defined tables
in a database using C (libpq) ???

Best regards,
Kenneth


--  Nothing in the world can take the place of perseverance. Talent will 
not; nothing is more common than unsuccessful men with talent. Genius 
will not; unrewarded genius is almost a proverb. Persistence and 
determination alone are omnipotent. -- Calvin Coolidge



Re: libpq question..

From
Alberto Cabello Sanchez
Date:
> Does anybody know how to determine the user-defined tables
> in a database using C (libpq) ???

You can query the database:
SELECT tablename FROM pg_tables WHERE tablename NOT LIKE 'pg_%'
and browse the result.
Hope this helps.

-- 
-----------------------
Alberto Cabello Sánchez
alberto@unex.es
Servicio de Informática
924 289 351
-----------------------