dbTalk Databases Forums  

Max length name of a database/schema

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Max length name of a database/schema in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fred BROUARD - SQLpro
 
Posts: n/a

Default Max length name of a database/schema - 10-29-2004 , 06:49 AM






Did you know what is the maximum character length for a name of :
a database or schema ?
a table or a view ?
a column ?
a constraint ?
an index ?
thanks
--
Frédéric BROUARD, MVP SQL Server. Expert SQL / spécialiste Delphi, web
Livre SQL - col. Référence : http://sqlpro.developpez.com/bookSQL.html
Le site du SQL, pour débutants et pros : http://sqlpro.developpez.com
************************ www.datasapiens.com *************************


Reply With Quote
  #2  
Old   
Martijn van Oosterhout
 
Posts: n/a

Default Re: Max length name of a database/schema - 11-01-2004 , 03:20 AM






All the same, there is only one "identifier" type.

It got bigger recently, but it's either 31 or 63 characters... Look
through the documentation.

On Fri, Oct 29, 2004 at 01:49:23PM +0200, Fred BROUARD - SQLpro wrote:
Quote:
Did you know what is the maximum character length for a name of :
a database or schema ?
a table or a view ?
a column ?
a constraint ?
an index ?
thanks
--
Frédéric BROUARD, MVP SQL Server. Expert SQL / spécialiste Delphi, web
Livre SQL - col. Référence : http://sqlpro.developpez.com/bookSQL.html
Le site du SQL, pour débutants et pros : http://sqlpro.developpez.com
************************ www.datasapiens.com *************************


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html
--
Martijn van Oosterhout <kleptog (AT) svana (DOT) org> http://svana.org/kleptog/
Quote:
Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
tool for doing 5% of the work and then sitting around waiting for someone
else to do the other 95% so you can sue them.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFBhf/LY5Twig3Ge+YRAoN3AJ4rTl3mzmhCK6wdxXLCVTvyLW3LtgCeO BWy
w7yaHfyDPsrZcsC3T3pelb4=
=CbxS
-----END PGP SIGNATURE-----



Reply With Quote
  #3  
Old   
Ian Barwick
 
Posts: n/a

Default Re: Max length name of a database/schema - 11-01-2004 , 04:05 AM



On Mon, 1 Nov 2004 10:20:14 +0100, Martijn van Oosterhout
<kleptog (AT) svana (DOT) org> wrote:
Quote:
All the same, there is only one "identifier" type.

It got bigger recently, but it's either 31 or 63 characters... Look
through the documentation.
It's been 63 characters since 7.2 or 7.3. See
src/include/postgres_ext.h and look for NAMEDATALEN.

Ian Barwick
barwick (AT) gmail (DOT) com

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.