-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Functions reported as changed when querying with different users #222
Comments
I have seen a similar issue with Postgres version 13.3 comparing 13.7 trigger functions that are the same (from two different databases - but the same schema name) even when there are definately the same. The create statement in pgadmin (create script) does include a couple of parameters that are NOT included in the migra create script. for example, migra issues this re-create script: Function create by migra: CREATE OR REPLACE FUNCTION schema.sample() function as provided by the pg_admin (create script) for the same table/function after applying the above script. -- FUNCTION: work_units.update_wu_connection_geom_for_wu_connection() CREATE FUNCTION schema.sample() |
I just had a similar issue, not sure if it's the same one but might help others. In my case the function definition diff was due to lower/upper case differences between the two DBs. select floor(1); While the other had: SELECT FLOOR(1); These SQL statements are equivalent but Migra expects an exact match. Modifying both functions to be in the exact same casing makes Migra show no diff in my case. |
Hello ❤️,
It appears when checking the difference between databases with different users migra reports functions as changed even when it is the same. I could not figure out why this happens. It may have something to do with the users having different grants or one being a superuser. Other types of entities do not appear to be reported changed, only functions.
I made an example repo:
https://github.com/regularfellow/migra-testing
The text was updated successfully, but these errors were encountered: