From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Chris Travers <chris(at)verkiel(dot)metatrontech(dot)com> |
Cc: | pgsql general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Advantages of PostgreSQL over MySQL 5.0 |
Date: | 2006-03-27 19:18:18 |
Message-ID: | 16428.1143487098@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Chris Travers <chris(at)verkiel(dot)metatrontech(dot)com> 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
From | Date | Subject | |
---|---|---|---|
Next Message | Dino Vliet | 2006-03-27 19:20:00 | Re: frustrated by plpgsql procedure |
Previous Message | Bricklen Anderson | 2006-03-27 19:14:35 | Re: frustrated by plpgsql procedure |