Re: Add NAMEDATALEN to PG_CONFIG?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: andy(at)asjohnson(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Add NAMEDATALEN to PG_CONFIG?
Date: 2017-05-15 23:37:23
Message-ID: 26599.1494891443@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andy Johnson <andy(at)asjohnson(dot)com> writes:
> Is there a way to find NAMEDATALEN in a
> database, other than looking at the
> source?

select typlen from pg_type where typname = 'name';

> If not could it be added to the
> PG_CONFIG eventually?

Seems like it would only make sense to do that if we supported
configuring NAMEDATALEN, which we don't really: you have to
manually edit pg_config_manual.h, and how well the result works
is on your own head.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2017-05-15 23:45:46 Re: Help: Installing 9.6 breaks local connections to 9.2 on Centos 6.9
Previous Message David G. Johnston 2017-05-15 23:36:18 Re: union all taking years - PG 9.6