From: darcy@druid.net
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Using substr with user defined types
Date: Fri, 23 Jun 2000 12:39:10 -0400 (EDT)
Message-ID: <m135WU2-000AY6C@druid.net> (raw)
In-Reply-To: <18662.961775545@sss.pgh.pa.us>
Thus spake Tom Lane
> > char *
> > chkpass_rout(chkpass *password)
>
> That doesn't return "text", so you can't tell the system it does.
> Type text is a varlena type, ie, length word followed by data.
Ack! That was it. I don't understand why it didn't print my debug
message at the start of the function. I used "fprintf(stderr, ..."
at the start of the function to make sure that it wasn't gobbled
up by buffering or something. When I didn't see my message I just
assumed that it had to come from the engine.
Thanks. I was able to dig out what changes I needed for the operator
stuff from the docs (I needed scalar??sel instead of int??sel) and
now everything I had before plus the chkpass stuff works. I'll
send the corrected chkpass stuff for contrib and work on that phone
number item I mentioned in another message.
--
D'Arcy J.M. Cain <darcy@{druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: darcy@druid.net, tgl@sss.pgh.pa.us
Subject: Re: Using substr with user defined types
In-Reply-To: <m135WU2-000AY6C@druid.net>
References: <18662.961775545@sss.pgh.pa.us> <m135WU2-000AY6C@druid.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox