remove some STATUS_* symbols - Mailing list pgsql-hackers

From Peter Eisentraut
Subject remove some STATUS_* symbols
Date
Msg-id a6f91ead-0ce4-2a34-062b-7ab9813ea308@2ndquadrant.com
Whole thread Raw
Responses Re: remove some STATUS_* symbols  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
I have found the collection of STATUS_* defines in c.h a bit curious. 
There used to be a lot more even that have been removed over time. 
Currently, STATUS_FOUND and STATUS_WAITING are only used in one group of 
functions each, so perhaps it would make more sense to remove these from 
the global namespace and make them a local concern.

Attached are two patches to remove these two symbols.  STATUS_FOUND can 
be replaced by a simple bool.  STATUS_WAITING is replaced by a separate 
enum.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: Disallow cancellation of waiting for synchronous replication
Next
From: Michael Paquier
Date:
Subject: Re: pgbench - use pg logging capabilities