Improve comment about query_id_enabled in queryjumblefuncs.c
authorMichael Paquier
Tue, 13 Feb 2024 22:20:15 +0000 (07:20 +0900)
committerMichael Paquier
Tue, 13 Feb 2024 22:20:15 +0000 (07:20 +0900)
commitf854dae888ab69db92153369644951dfb5b3d034
tree80bf3d0065fb000ebe26ec19dd1fd292f5bbda6c
parent5ebc9c90173f32cffe373a80835f157b9ebfa3bd
Improve comment about query_id_enabled in queryjumblefuncs.c

The comment was inexact because query_id_enabled will not be switched to
"true" even if compute_query_id is "on", unless a module requests for
it.

While on it, this adds a comment to mention that IsQueryIdEnabled()
should be used to check if query ID computation is enabled or not.

Author: Yugo Nagata
Reviewed-by: Julien Rouhaud
Discussion: https://postgr.es/m/20240209153823.e29a68cadb14225f1362a2cf@sraoss.co.jp
src/backend/nodes/queryjumblefuncs.c