Fix two-argument form of ts_rewrite() so it actually works for cases where

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 12f25e70a6feb40b7fba1dcc17deabcffcdfcc3d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-10-23T01:44:40Z
Releases: 8.3.0
Fix two-argument form of ts_rewrite() so it actually works for cases where
a later rewrite rule should change a subtree modified by an earlier one.
Per my gripe of a few days ago.

Files