changing enumlabel from a NameData to text

From: Mike Wilson <geekinutah(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: changing enumlabel from a NameData to text
Date: 2009-07-15 18:25:27
Message-ID: 2a2a87e00907151125k4b0f084duabec67f8bcfd6430@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2009-07-15 18:56:35 Re: changing enumlabel from a NameData to text
Previous Message Alvaro Herrera 2009-07-15 18:20:16 Re: Add encoding support to COPY