Skip to content
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

when start a new backend or restart the DB, agg operation will get a null value at first time #2

Closed
junfenglu2016 opened this issue Mar 7, 2017 · 1 comment

Comments

@junfenglu2016
Copy link

[pgrel@centos01 ~]$ psql -h /pgreltmp/ postgres
psql (9.6.2)
Type "help" for help.

postgres=# select sum(review_rating) from vops_customer_reviews ;
sum

(1 row)

postgres=# select sum(review_rating) from vops_customer_reviews ;
sum

2602248
(1 row)

@knizhnik
Copy link
Contributor

knizhnik commented Mar 7, 2017

I think that first result was produced when vops extension is not yet loaded. This problems is explained in VOPS documentation. Two possible workarounds:

  1. Add VOPS to shared_preload_libraries list/.
  2. Call vops_initialize() before any access to table with VOPS tiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants