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

Downgrade citus gives error. #1070

Open
yuratushnyak opened this issue Jan 9, 2023 · 2 comments · May be fixed by citusdata/citus#6637
Open

Downgrade citus gives error. #1070

yuratushnyak opened this issue Jan 9, 2023 · 2 comments · May be fixed by citusdata/citus#6637

Comments

@yuratushnyak
Copy link

Trying to downgrade citus from 11.1.4 to 10.2.7 gives error.

At first, We've upgraded citus from 10.2.7 to 11.1.4 successfully.
When We're trying to downgrade with the install-downgrades, the following error occurs:
2022-12-09 09:55:05.816 UTC [32593] ERROR: extension "citus" has no update path from version "11.1-1" to version "10.2-5"
2022-12-09 09:55:05.816 UTC [32593] STATEMENT: alter extension citus update;

Steps to reproduce:

  1. Download and extract source code of 10.2.7 and 11.1.4 versions

  2. Change directory to citus-10.2.7 and install binaries through: make, make install

  3. Change directory to citus-11.1.4 and install downgrade script through: make, make install-downgrades

  4. Restart postgresql service and run the extension upgrade script: ALTER EXTENSION citus UPDATE;

@hanefi
Copy link
Member

hanefi commented Jan 9, 2023

Thanks for sharing this error with us. It appears that this is a mistake on our end.

The main problem is that make install-downgrades did not install one of the required files for this downgrade. You can mitigate this error by copying a file to your installation directory manually.

Right after step 3, and before step 4 can you run the following on citus-11.1.4 directory?

cp src/backend/distributed/build/sql/citus--11.0-4--11.0-3.sql "$(pg_config --sharedir)/extension/"

@hanefi hanefi linked a pull request Jan 23, 2023 that will close this issue
@yuratushnyak
Copy link
Author

Sorry for delay in response. I've run on citus-11-1.4 directory just right after step 3
cp src/backend/distributed/build/sql/citus--11.0-4--11.0-3.sql "$(pg_config --sharedir)/extension/"

After I did restart postgresql and tried to run: ALTER EXTENSION citus UPDATE;
but received the ERROR: schema columnar is already a member of extension "citus_columnar".
What does it mean?

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

Successfully merging a pull request may close this issue.

2 participants