Quick System Catalog Query Question - Mailing list pgsql-admin

From Terry Hampton
Subject Quick System Catalog Query Question
Date
Msg-id 40689A62.5080507@limacorp.com
Whole thread Raw
Responses Re: Quick System Catalog Query Question  (Manuel Sugawara <masm@fciencias.unam.mx>)
List pgsql-admin

All,

select attname, atttypmod, atttypid  from pg_attribute where
attrelid=3701787 and attnum > 0;

returns:

   attname   | atttypmod | atttypid
-------------+-----------+----------
  acct_name  |       132 |     1043
  grp               |        54 |     1043
  name           |       260 |     1043
  id                  |        54 |     1043
  proc_by        |        54 |     1043
  fldnames      |        -1 |       25
  flddata          |        -1 |       25


    I can't determine what SQL to which system catalog will associate
    "1043" to "varchar"   and  "25" to "text"


    many thanks for you help

        7.3.2  on Linux


            Terry





Terry L. Hampton
Project Manager
LimaCorp, LLC   www.limacorp.com
513.587.1874



pgsql-admin by date:

Previous
From: Terry Hampton
Date:
Subject: Raw vs Filesystem
Next
From: "Jaime Casanova"
Date:
Subject: Re: Raw vs Filesystem