Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alter procedure/function will unexpectly delete pg_depend records
Backgroud: Previously when we implement alter procedure/function feature, we did follow steps in update metadata: 1. Create a new procedure/function 2. use the old oid to replace the new oid in the pg_proc metadata 3. clean the pg_depend records refer to the new oid Analysis: But for the first step in creating a new proc/function, if the parameter list is not change, it'll just update the old tuple, so in such case old oid will be the same with new oid, in such case we should not drop pg_depend records. Fix: Skip drop pg_depend records if old oid = new oid Issue-resolved: BABEL-5601 Signed-off-by: Zhibai Song <[email protected]>
- Loading branch information