From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Brendan Jurd" <direvus(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: [PATCHES] Text <-> C string |
Date: | 2008-03-25 22:48:04 |
Message-ID: | 1139.1206485284@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
"Brendan Jurd" <direvus(at)gmail(dot)com> writes:
> As discussed on -hackers, I'm trying to get rid of some redundant code
> by creating a widely useful set of functions to convert between text
> and C string in the backend.
Applied with revisions --- the functions were modified as per recent
discussion, and I fixed a lot more potential call sites.
There are no textout/textin calls left, but I may have missed some
places that were doing it the hard way with direct palloc/memcpy
manipulations. It might be worth trolling all the VARDATA() references
to see if any more are easily replaceable.
I notice in particular that xfunc.sgml contains sample C functions to
copy and concatenate text. While these aren't directly replaceable
with the new functions, I wonder whether we ought to change the examples
to make them less certain to break if we ever change text's
representation.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Keaton Adams | 2008-03-25 23:53:09 | Re: PostgreSQL Replication with read-only access to standby DB |
Previous Message | Neil Conway | 2008-03-25 22:40:13 | Re: advancing snapshot's xmin |
From | Date | Subject | |
---|---|---|---|
Next Message | Neil Conway | 2008-03-25 22:50:42 | Re: Doc patch for DTrace |
Previous Message | Neil Conway | 2008-03-25 22:28:15 | Re: Moving snapshot code around |