Re: Clarification needed

From: "Sreejesh O S" <sreejeshos(at)gmail(dot)com>
To: "Dhanaraj M" <Dhanaraj(dot)M(at)sun(dot)com>
Cc: "Zdenek Kotala" <Zdenek(dot)Kotala(at)sun(dot)com>, "Indira Muthuswamy" <indumuthu(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Clarification needed
Date: 2006-10-11 15:26:53
Message-ID: 2bf250e40610110826l1af27f4p76a95cc217fe7ef7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

you should use schemaname.tablename syntax if you are using schema

**
On 10/11/06, Dhanaraj M <Dhanaraj(dot)M(at)sun(dot)com> wrote:
>
> In psql,
> psql>\d tableName
>
> Query is
>
> SELECT pg_catalog.format_type(a.atttypid, a.atttypmod) from
> pg_attribute a, pg_class c where a.attrelid =c.oid and
> c.relname='TableName' and a.attname='ColName';
>
>
> Zdenek Kotala wrote:
>
> >
> > Look at http://www.postgresql.org/docs/8.1/interactive/catalogs.html
> >
> > Specially on pg_attribute, pg_class and pg_type table. Or you can use
> > some features in the psql.
> >
> > Zdenek
> >
> >
> > Indira Muthuswamy napsal(a):
> >
> >> Hai,
> >>
> >> Can anyone of you help me in finding the datatype of a particular
> >> column in a table in Postgres?
> >>
> >> Thanks and Regards,
> >> M.Indira
> >>
> >>
> >
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: don't forget to increase your free space map settings
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2006-10-11 15:53:34 Re: Is it possible to return custom type as proper ROW?
Previous Message Joe Kramer 2006-10-11 15:26:09 Is it possible to return custom type as proper ROW?

Browse pgsql-hackers by date

  From Date Subject
Next Message Carlos Chacon 2006-10-11 16:29:33 Modification to the postgres catalog
Previous Message Tom Lane 2006-10-11 15:26:36 Re: hstore isexists