X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 79269475A5C for ; Tue, 25 Feb 2003 10:14:54 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 39235-03 for ; Tue, 25 Feb 2003 10:14:43 -0500 (EST) Received: from nycsmtp1out.rdc-nyc.rr.com (nycsmtp1out.rdc-nyc.rr.com [24.29.99.222]) by postgresql.org (Postfix) with ESMTP id E98D7475B07 for ; Tue, 25 Feb 2003 10:09:42 -0500 (EST) Received: from math-hat.com (66-65-68-135.nyc.rr.com [66.65.68.135]) by nycsmtp1out.rdc-nyc.rr.com (8.12.1/Road Runner SMTP Server 1.0) with SMTP id h1PF9kRp002521 for ; Tue, 25 Feb 2003 10:09:47 -0500 (EST) Received: (nullmailer pid 18498 invoked by uid 1000); Tue, 25 Feb 2003 15:09:46 -0000 To: pgsql-sql@postgresql.org Subject: Polymorphic? From: Itai Zukerman Date: Tue, 25 Feb 2003 10:09:45 -0500 Message-ID: <87lm041jnq.fsf@matt.w80.math-hat.com> User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/549 X-Sequence-Number: 11947 I'd like to define a C function that takes two arguments of type "array of " 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