-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table rename resistant versioning function & trigger #31
Comments
The idea looks OK to me, but I doubt if I can implement it because trigger arguments is an array of |
That can work same way I suppose, i.e. by casting text to integer with |
This closes arkhipov#31
We can just check names while deciding on hash entry invalidation for now. |
This closes arkhipov#31
This closes arkhipov#31
I suggest to use relation OID instead of a name while calling versioning function from a trigger. This way one can rename history table without a need to recreate a trigger with an updated call to versioning.
Maybe implement versioning2 that takes oid, casts it to regclass and calls standard versioning? Or, actually, other way around replacing heap_openrv with heap_open and alike?
P.S. I do some nasty things with PG and I deal with a bunch of versioned tables that might get renamed.
The text was updated successfully, but these errors were encountered: