Re: Catching missing Datum conversions - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Catching missing Datum conversions
Date
Msg-id CA+TgmoYz6pjb0aOU7A=MBYt4BVjnUmHg7J_Soc823rV559LLNQ@mail.gmail.com
Whole thread Raw
In response to Catching missing Datum conversions  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers
On Fri, Jul 19, 2019 at 7:55 PM Thomas Munro <thomas.munro@gmail.com> wrote:
> When reviewing a recent patch, I missed a place where Datum was being
> converted to another type implicitly (ie without going though a
> DatumGetXXX() macro).  Thanks to Jeff for fixing that (commit
> b538c90b), but I was curious to see if I could convince my compiler to
> tell me about that sort of thing.

This is a very easy mistake to make, so if you ever feel like
returning to this topic in earnest, I think it could be a worthwhile
expenditure of time.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Kuntal Ghosh
Date:
Subject: Re: Add connection active, idle time to pg_stat_activity
Next
From: "Euler Taveira"
Date:
Subject: Re: row filtering for logical replication