diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-08-23 19:23:41 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-08-23 19:23:41 +0000 |
commit | cab9a0656c36739f59277b34fea8ab9438395869 (patch) | |
tree | 80250331addd74178dca2959ff598570c3545585 /src/tutorial/funcs.c | |
parent | c38b75947e015afdd2a18d099f52d29748734e32 (diff) | |
download | postgresql-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/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions