changing enumlabel from a NameData to text - Mailing list pgsql-hackers

From Mike Wilson
Subject changing enumlabel from a NameData to text
Date
Msg-id 2a2a87e00907151125k4b0f084duabec67f8bcfd6430@mail.gmail.com
Whole thread Raw
Responses Re: changing enumlabel from a NameData to text
List pgsql-hackers
Hi all,

I'm new to the postgresql codebase, working on a patch to 8.3.7 to
allow enums to accept variable length values for David Andersen (see
http://archives.postgresql.org/pgsql-performance/2008-07/msg00226.php
for more details). The code I wrote compiles, but breaks in a few
places. For example I segfault when I try to insert enumlabels with
less than 126 bytes. My guess is that I am not understanding the new
varvarlena stuff in 8.3, wondering if someone could point me to an
explanation of how it works?


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Add encoding support to COPY
Next
From: Andrew Dunstan
Date:
Subject: Re: changing enumlabel from a NameData to text