pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Itai Zukerman <zukerman@math-hat.com>
To: pgsql-sql@postgresql.org
Subject: Polymorphic?
Date: Tue, 25 Feb 2003 10:09:45 -0500
Message-ID: <87lm041jnq.fsf@matt.w80.math-hat.com> (raw)

I'd like to define a C function that takes two arguments of type
"array of <fixed-length type>" and returns an INT4.  The function
would make use of the <, <=, =, >=, > operators on the base type.  Any
examples of or documentation on how to:

1.  Extract information about the underlying type from the arrays, in
    particular the size of the type?

2.  Apply an operator from within C?

-- 
Itai Zukerman  <http://www.math-hat.com/~zukerman/;



view thread (3+ messages)  latest in thread

Message-ID: <87lm041jnq.fsf@matt.w80.math-hat.com>
Permalink:  ../87lm041jnq.fsf@matt.w80.math-hat.com/
Also on:    postgresql.org/message-id/87lm041jnq.fsf@matt.w80.math-hat.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: zukerman@math-hat.com
  Subject: Re: Polymorphic?
  In-Reply-To: <87lm041jnq.fsf@matt.w80.math-hat.com>

* 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