Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2024-03-22 08:13:35 +0000
committerPeter Eisentraut2024-03-22 08:49:12 +0000
commitd20d8fbd3e4d327dd0778a02d5661b51f4f6423a (patch)
tree41e1a5fd7d7c8ee46aa356c8afde9da51c264a95 /src/backend/regex/meson.build
parent6ae701b4378db2284c77314560e95a93d0ba9484 (diff)
Do not output actual value of location fields in node serialization by default
This changes nodeToString() to not output the actual value of location fields in nodes, but instead it writes -1. This mirrors the fact that stringToNode() also does not read location field values but always stores -1. For most uses of nodeToString(), which is to store nodes in catalog fields, this is more useful. We don't store original query texts in catalogs, so any lingering query location values are not meaningful. For debugging purposes, there is a new nodeToStringWithLocations(), which mirrors the existing stringToNodeWithLocations(). This is used for WRITE_READ_PARSE_PLAN_TREES and nodes/print.c functions, which covers all the debugging uses. Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CAEze2WgrCiR3JZmWyB0YTc8HV7ewRdx13j0CqD6mVkYAW+SFGQ@mail.gmail.com
Diffstat (limited to 'src/backend/regex/meson.build')
0 files changed, 0 insertions, 0 deletions