Re: [HACKERS] libpq and db information - Mailing list pgsql-hackers

From The Hermit Hacker
Subject Re: [HACKERS] libpq and db information
Date
Msg-id Pine.NEB.3.95.980112081105.2566C-100000@hub.org
Whole thread Raw
In response to libpq and db information  ("neil d. quiogue" <neil@iphil.net>)
List pgsql-hackers
On Mon, 12 Jan 1998, neil d. quiogue wrote:

> hello,
>
> is there any way to be able to peer to a database' information (tables and
> their fields) similar to reflection in java using libpq?  i know one can
> use the \d recursively but isn't there a way using libpq?  i need the
> information to properly modify a particular part in radius.

    Not sure if this is what you are looking for, but to implement
this in some of my code, I just went into the pg_dump.c code and pulled
out the required SQL statement...



pgsql-hackers by date:

Previous
From: "neil d. quiogue"
Date:
Subject: Re: [QUESTIONS] libpq and db information
Next
From: Bruce Momjian
Date:
Subject: Re: New pg_pwd patch and stuff