pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Volpe <volpe.mark@epamail.epa.gov>
To: pgsql-sql@postgresql.org
Subject: Typecast a user-defined type?
Date: Wed, 04 Oct 2000 11:48:20 -0400
Message-ID: <39DB5144.CB58A440@epamail.epa.gov> (raw)

Hi,

I've created my own datatype for Postgres. I have found it necessary to be
able to convert it to text, so I could match it up with a text column in a
UNION. I figured Postgres would do this for me, but then, I'm naive. Can
someone give me a hint, or point me to the appropriate material on how to get
"value::text" to work with my new type?

Thanks,
Mark



view thread (2+ messages)  latest in thread

Message-ID: <39DB5144.CB58A440@epamail.epa.gov>
Permalink:  ../39DB5144.CB58A440@epamail.epa.gov/
Also on:    postgresql.org/message-id/39DB5144.CB58A440@epamail.epa.gov

 · 

reply

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: volpe.mark@epamail.epa.gov
  Subject: Re: Typecast a user-defined type?
  In-Reply-To: <39DB5144.CB58A440@epamail.epa.gov>
  References: <39DB5144.CB58A440@epamail.epa.gov>

* 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