Search Postgresql Archives

Re: Advantages of PostgreSQL over MySQL 5.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris Travers <chris@xxxxxxxxxxxxxxxxxxxxxxxx> writes:
> Out of curiosity, how hard would it be to change the default maximum 
> length on the name type in PostgreSQL?

Change NAMEDATALEN in postgres_ext.h, recompile, re-initdb.

I'm not sure why we still define it in postgres_ext.h, because it hasn't
been part of the client API for a long time --- any client code still
depending on it is pretty broken IMHO.  There have been periodic
discussions about changing the default value to 128, which is what the
SQL spec says it should be, but we haven't done so because of worries
about bloating the system catalogs.

> There ought to be a simple way to create a PLPGSQL function that would 
> do this for you.

People have posted examples a couple of times ... check the archives.

			regards, tom lane


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux