pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedExtending table name max length
2+ messages / 2 participants
[nested] [flat]
* Extending table name max length
@ 2002-04-12 12:17 Tony Griffiths <tony.griffiths@cs.man.ac.uk>
2002-04-15 17:32 ` Re: Extending table name max length Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Tony Griffiths @ 2002-04-12 12:17 UTC (permalink / raw)
To: pgsql-admin
Hi,
I need to extend the maximum name length for tables as the databases
that I'm using use automatically generated tables names that can get
quite lengthy. I've managed to find the appropriate header file to set
the max name length so that calls to create tables from the psql command
line work ok (by recompiling from source). But now I need to access
these created tables from within embedded sql.
I had assumed that there would be a single header file that sets the max
name length, but it loos like the esql precompiler didn't pick up the
amended max name length. Can anyone therefore tell me where I should
start to look for the appropriate header file to allow max name lengths
for the esql precompiler to be extended.
Hope this is the correct mailing list for this question.
Many thanks,
--
Tony
---------------------------------
Dr. Tony Griffiths
Research Fellow
Information Management Group,
Department of Computer Science,
The University of Manchester,
Oxford Road,
Manchester M13 9PL,
United Kingdom
Tel. +44 (0) 161 275 6139
Fax +44 (0) 161 275 6236
email tony.griffiths@cs.man.ac.uk
---------------------------------
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Extending table name max length
2002-04-12 12:17 Extending table name max length Tony Griffiths <tony.griffiths@cs.man.ac.uk>
@ 2002-04-15 17:32 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2002-04-15 17:32 UTC (permalink / raw)
To: Tony Griffiths <tony.griffiths@cs.man.ac.uk>; +Cc: pgsql-admin
Tony Griffiths <tony.griffiths@cs.man.ac.uk> writes:
> I had assumed that there would be a single header file that sets the max
> name length, but it loos like the esql precompiler didn't pick up the
> amended max name length.
Did you remember to recompile ecpg? AFAICT it uses the same NAMEDATALEN
symbol as everyplace else.
In general, when making a system-wide configuration change like that
one, it'd be a good idea to "make clean" at the top level, then do a
full make, make install, initdb cycle.
If you did all that, another possibility is an include file search path
problem: perhaps the ecpg compile picked up a previously-installed
postgres_ext.h with the wrong NAMEDATALEN value.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-04-15 17:32 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-04-12 12:17 Extending table name max length Tony Griffiths <tony.griffiths@cs.man.ac.uk>
2002-04-15 17:32 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox