Re: [HACKERS] StringInfo Macros

2009-08-28 Thread Markus Wanner
Hello Tom, Tom Lane wrote: > Don't call them BUFFER_FOO --- that term already has a pretty specific > meaning in most of the backend. STRINGINFO_FOO is a bit long but > seems to fit the best with the existing naming in stringinfo.h. Understood and agreed. Note however, that lots of places, espec

Re: [HACKERS] StringInfo Macros

2009-08-28 Thread Tom Lane
"Markus Wanner" writes: > trying to clean up the Postgres-R code further, I would like to make > use of StringInfo and accompanying functions in libpq/pqformat.c > instead of some home-brown duplicate of it. However, I'm missing > helper macros like these (mainly for readability of the code)

[HACKERS] StringInfo Macros

2009-08-28 Thread Markus Wanner
Hi, trying to clean up the Postgres-R code further, I would like to make use of StringInfo and accompanying functions in libpq/pqformat.c instead of some home-brown duplicate of it. However, I'm missing helper macros like these (mainly for readability of the code): #define BUFFER_START_PT