lsm3 icon indicating copy to clipboard operation
lsm3 copied to clipboard

ERROR: invalid function number 4, must be between 1 and 3

Open paras-garg12 opened this issue 5 years ago • 5 comments

Hi i am running for postgres version 13.0. when issuing command "create extension lsm3" after make install and shared library . I am getting ERROR: invalid function number 4, must be between 1 and 3. how to remove that error

paras-garg12 avatar Dec 12 '20 16:12 paras-garg12

Sorry, I could not reproduce the problem. I have tested LSM3 both with current master and REL_13_STABLE branch. How are you building lsm3 extension?

knizhnik avatar Dec 12 '20 19:12 knizhnik

After cloning repository i follow these steps in postgresql 13.0 ubuntu.

  1. cd lsm3
  2. make
  3. make install
  4. copied lines from lsm3.conf and added them to install/data/postgres.conf
  5. restart postgres server 6.tried both make installcheck and create extension lsm3 in psql both are failing .

Please check and tell me that i am following the required steps

paras-garg12 avatar Dec 13 '20 06:12 paras-garg12

Do you have Postgres development package (with sources). To build extension you need to have Postgres sources. It is not clear from your explanation above whether lsm3 was build in 13.0 sources tree. Lsm3 extension can be built using PGXS (make USE_PGXS=1) or should be placed in contrib directory of Postgres source tree. Did you use second approach? If so where did you get postgres sources? From main Postgres repository git://git.postgresql.org/git/postgresql.git ? If so, can you perform "git status" in it?

knizhnik avatar Dec 13 '20 11:12 knizhnik

i use first approch. let me rephrase

  1. use make USE_PGXS=1
  2. make install USE_PGXS=1
  3. make installcheck USE_PGXS=1

i am able to create other extension like base36

paras-garg12 avatar Dec 13 '20 16:12 paras-garg12

In case of using PGXS you need to ensure that path is pointed to correct postgres version. Can you please do "type postgres" and then "postgres --version" ?

knizhnik avatar Dec 16 '20 16:12 knizhnik