Re: [GENERAL] Is float8 a reference type?

Поиск
Список
Период
Сортировка
От Paul A Jungwirth
Тема Re: [GENERAL] Is float8 a reference type?
Дата
Msg-id CA+renyX+V86ciSE7TMmqAdxpsDCnx4Mu4_sQXEbQ8-EbOb-cUA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Is float8 a reference type?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Sat, Sep 23, 2017 at 9:40 AM, Tom Lane <tgl@sss.pgh.pa.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


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Is float8 a reference type?
Следующее
От: Jack Christensen
Дата:
Сообщение: [GENERAL] Is auto-analyze as thorough as manual analyze?