Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcannot update SecondarySnapshot during a parallel operation (with postgis) #215
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
Environment:
SQL Statement
Errors(important! with postgres parallel query)
When we execute statement above in parallel query model (set force_parallel_mode TO on), the following error always occure:
Why?
The sql statement above uses the datatype "geography", actually, it will call a new sql statment " select xxx from spatial_ref_sys" internal by spi_exec, call stack:
That's ok without postgres parallel query. But in parallel query model, the Statement 1 is planned and executed in leader progress, the SubStatement 2 is executed only in workers progress(not leader progress).
In pg_pathman, it uses GetLatestSnapshot() for pathman_config_contains_relation() and errors occur. I think this is the problem, can GetCatalogSnapshot replace GetLatestSnapshot?
The call stack below: