Re: [HACKERS] Minor improvement for inval.c header comment

2017-04-13 Thread Amit Langote
On 2017/04/13 18:09, Simon Riggs wrote:
> On 13 April 2017 at 09:27, Amit Langote  wrote:
>> Attached patch modifies a sentence in the inval.c header comment to
>> mention that operations on a pg_index tuple also registers relcache flush
>> operation.
> 
> Correctly observed. Patch pushed.

Thanks.

Regards,
Amit



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


Re: [HACKERS] Minor improvement for inval.c header comment

2017-04-13 Thread Simon Riggs
On 13 April 2017 at 09:27, Amit Langote  wrote:
> Attached patch modifies a sentence in the inval.c header comment to
> mention that operations on a pg_index tuple also registers relcache flush
> operation.

Correctly observed. Patch pushed.

-- 
Simon Riggshttp://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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


[HACKERS] Minor improvement for inval.c header comment

2017-04-13 Thread Amit Langote
Attached patch modifies a sentence in the inval.c header comment to
mention that operations on a pg_index tuple also registers relcache flush
operation.

Thanks,
Amit
diff --git a/src/backend/utils/cache/inval.c b/src/backend/utils/cache/inval.c
index 8159ab340d..9d62544554 100644
--- a/src/backend/utils/cache/inval.c
+++ b/src/backend/utils/cache/inval.c
@@ -51,9 +51,9 @@
  *	PrepareToInvalidateCacheTuple() routine provides the knowledge of which
  *	catcaches may need invalidation for a given tuple.
  *
- *	Also, whenever we see an operation on a pg_class or pg_attribute tuple,
- *	we register a relcache flush operation for the relation described by that
- *	tuple.
+ *	Also, whenever we see an operation on a pg_class, pg_attribute, or
+ *	pg_index tuple, we register a relcache flush operation for the relation
+ *	described by that tuple.
  *
  *	We keep the relcache flush requests in lists separate from the catcache
  *	tuple flush requests.  This allows us to issue all the pending catcache

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