Search Postgresql Archives

Re:ERROR: XX000: cannot update SecondarySnapshot during a parallel operation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am guessing you used  pg_pathman or other extensions in addition to postgis?
Postgis use SPI_exec()  to execute sql statement  "SELECT proj4text FROM public.spatial_ref_sys WHERE srid = 4326 LIMIT 1” in each worker progress in postgres parallel query,  pg_pathman will rewrite the query plan by pg_pathman planner hook and GetLatestSnapshot. But in parallel query, the snapshot of each worker progress is the same as leader progress, the worker progress is not necessary to get the latest snapshot, thats the problem.  I think its a bug of pg_pathman, there’s a pg_pathman issue for detail: https://github.com/postgrespro/pg_pathman/issues/215

Eric Wong.
On 08/5/2020 11:02fuzk<fuzk80_76@xxxxxxx> wrote:
Dear Sir/Madam

I got an error when I execute the following select sentence.
Would you please solve the problem for me?
Thank you .

Alan Fu.

postgres=# \set VERBOSITY verbose
postgres=# SELECT round(cast(coalesce(sum(ST_length(geography(geometry)))/1000,0) as NUMERIC),4)||'KM' field_value from had_link;

ERROR:  XX000: cannot update SecondarySnapshot during a parallel operation
CONTEXT:  SQL statement "SELECT proj4text FROM public.spatial_ref_sys WHERE srid = 4326 LIMIT 1"
parallel worker
LOCATION:  GetLatestSnapshot, snapmgr.c:387


 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux