Обсуждение: libpq question..

Поиск
Список
Период
Сортировка

libpq question..

От
Kenneth Suralta
Дата:
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..

От
Alberto Cabello Sanchez
Дата:
> 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
-----------------------