aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogutils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-04-30 12:48:12 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-04-30 12:48:12 -0400
commit0601cb54dac14d979d726ab2ebeda251ae36e857 (patch)
treed9cc59a25ea9bd53a98a2534d0a8312a9bd1f671 /src/backend/access/transam/xlogutils.c
parentd166eed302400a71eed1aaa301d30be3af7b5715 (diff)
downloadpostgresql-0601cb54dac14d979d726ab2ebeda251ae36e857.tar.gz
postgresql-0601cb54dac14d979d726ab2ebeda251ae36e857.zip
Limit overall indentation in rule/view dumps.
Continuing to indent no matter how deeply nested we get doesn't really do anything for readability; what's worse, it results in O(N^2) total whitespace, which can become a performance and memory-consumption issue. To address this, once we get past 40 characters of indentation, reduce the indentation step distance 4x, and also limit the maximum indentation by reducing it modulo 40. This latter choice is a bit weird at first glance, but it seems to preserve readability better than a simple cap would do. Back-patch to 9.3, because since commit 62e666400d the performance issue is a hazard for pg_dump. Greg Stark and Tom Lane
Diffstat (limited to 'src/backend/access/transam/xlogutils.c')
0 files changed, 0 insertions, 0 deletions