On Monday 16 August 2004 10:28 am, Blyth A J C (Comp) wrote:
> I am trying execute the following and keep getting an error.
>
> self._query = "\d syslogdb"
> com.execute(self.query)
>
> What I can to do is to write a little program in python that will get a
> description (type definition) for a table. - HELP
>
>
> Andrew
One approach to consider is to run psql with the -E flag. Then when you run
commands like "\d syslogdb", psql will show you the SQL it runs itself in
order to retrieve the information. I think the reason your query fails is
because a number of commands are run to get the result.
.... Bob
|