| From: | Paul A Jungwirth <pj(at)illuminatedcomputing(dot)com> | 
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
| Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, pgsql <pgsql-general(at)postgresql(dot)org> | 
| Subject: | Re: Is float8 a reference type? | 
| Date: | 2017-09-23 17:09:08 | 
| Message-ID: | CA+renyX+V86ciSE7TMmqAdxpsDCnx4Mu4_sQXEbQ8-EbOb-cUA@mail.gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general | 
On Sat, Sep 23, 2017 at 9:40 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> I wonder whether you're using up-to-date Postgres headers (ones
> where Float8GetDatum is a static inline function).
I'm building against 9.6.3 on both machines. I'm not doing anything
special to change the compilation options. Here is my whole Makefile:
    MODULES = floatfile
    EXTENSION = floatfile
    EXTENSION_VERSION = 1.0.0
    DATA = floatfile--$(EXTENSION_VERSION).sql
    PG_CONFIG = pg_config
    PGXS := $(shell $(PG_CONFIG) --pgxs)
    include $(PGXS)
But what I'm really interested in is this: What are the bad things
that can happen if I do `datums = (Datum *)floats`, as long as it's
only when Datums are 8 bytes wide? Is there a platform with
pass-by-val float8s where that won't work?
Thanks,
Paul
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jack Christensen | 2017-09-23 22:10:42 | Is auto-analyze as thorough as manual analyze? | 
| Previous Message | Tom Lane | 2017-09-23 16:40:24 | Re: Is float8 a reference type? |