How do I construct a varlena?

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: hackers(at)postgresql(dot)org
Subject: How do I construct a varlena?
Date: 1998-08-04 10:07:54
Message-ID: 199808041007.LAA01177@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Can you tell me, please, how to construct a varlena (to be returned by
a function).

I see it is declared as an int and a 1-byte array; I don't know how to
assign a longer string in place of that 1-byte array; the compiler
complains about incompatible types, whatever I do.

Thank you.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"And not only so, but we glory in tribulations also;
knowing that tribulation worketh patience; And
patience, experience; and experience, hope."
Romans 5:3,4

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message William McCracken 1998-08-04 14:09:31 Query based on date/time field
Previous Message Dr. Michael Meskes 1998-08-04 05:52:31 Re: [HACKERS] Bug in gram.y?