name of enum used in 'Cache if PathTarget and RestrictInfos contain volatile functions' - Mailing list pgsql-hackers

From Zhihong Yu
Subject name of enum used in 'Cache if PathTarget and RestrictInfos contain volatile functions'
Date
Msg-id CALNJ-vT52_wt619S2hTRnaAgHGrsDDFgYX9NRnjHOSQzgVXfCg@mail.gmail.com
Whole thread Raw
Responses Re: name of enum used in 'Cache if PathTarget and RestrictInfos contain volatile functions'  (Peter Smith <smithpb2250@gmail.com>)
List pgsql-hackers
Hi,
I was looking at:
  Cache if PathTarget and RestrictInfos contain volatile functions

VOLATILITY_NOVOLATILE caught my attention. Since the enum values don't start with HAS, I think VOLATILITY_NONVOLATILE would be easier to read.
Actually I think since the enums are defined in VolatileFunctionStatus, they can be simply called (the prefix should be redundant):

UNKNOWN
NONVOLATILE
VOLATILE

Thanks

pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: wal stats questions
Next
From: David Rowley
Date:
Subject: Re: Hybrid Hash/Nested Loop joins and caching results from subplans