aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-08-23 19:23:41 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-08-23 19:23:41 +0000
commitcab9a0656c36739f59277b34fea8ab9438395869 (patch)
tree80250331addd74178dca2959ff598570c3545585 /src/backend/utils/adt
parentc38b75947e015afdd2a18d099f52d29748734e32 (diff)
downloadpostgresql-cab9a0656c36739f59277b34fea8ab9438395869.tar.gz
postgresql-cab9a0656c36739f59277b34fea8ab9438395869.zip
Make TRUNCATE do truncate-in-place when processing a relation that was created
or previously truncated in the current (sub)transaction. This is safe since if the (sub)transaction later rolls back, we'd just discard the rel's current physical file anyway. This avoids unreasonable growth in the number of transient files when a relation is repeatedly truncated. Per a performance gripe a couple weeks ago from Todd Cook.
Diffstat (limited to 'src/backend/utils/adt')
0 files changed, 0 insertions, 0 deletions