exposing float8-as-value to PGXS/makefiles

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: exposing float8-as-value to PGXS/makefiles
Date: 2011-05-20 16:20:56
Message-ID: 1305908278-sup-2408@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I was just messing around with a datatype that's based in int64
representation. Pretty much everything (seems to) work cleanly, but one
problem I have is that I cannot build the correct CREATE TYPE sentence
in the .sql.in file to actually install the type, because there's no
easy way to figure out whether float64 (and therefore int64) is passed
by value or not.

configure gets the value as a C define but that's a PITA to use. So
what I'm saying is that I'd like it to be exposed in Makefile.global or
something like that where pgxs-built things can use it to build their
SQL files.

I don't have a patch to show, but does the basic idea sound good?

--
Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-05-20 16:43:25 Re: exposing float8-as-value to PGXS/makefiles
Previous Message Robert Haas 2011-05-20 15:27:08 Re: ts_rank