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

Newest release breaks compatibility with PostgreSQL 9.4 #8590

Closed
2 tasks done
raucao opened this issue Sep 3, 2018 · 9 comments
Closed
2 tasks done

Newest release breaks compatibility with PostgreSQL 9.4 #8590

raucao opened this issue Sep 3, 2018 · 9 comments

Comments

@raucao
Copy link
Contributor

raucao commented Sep 3, 2018

We're on an older LTS of Ubuntu, which only gets 9.4 by default. Until v2.5.0 it worked without problems, but the migrations for the latest release include one with an upsert statement, which is only available in postgres 9.5 and newer:

https://github.com/tootsuite/mastodon/blob/master/db/migrate/20180812173710_copy_status_stats.rb#L12-L13

I looked into upgrading postgres on this server, but it would be too difficult with our current setup. Would be great if this migration could be refactored to also work on 9.4, because everything else in Mastodon seems to be compatible.


  • I searched or browsed the repo’s other issues to ensure this is not a duplicate.
  • This bug happens on a tagged release and not on master (If you're a user, don't worry about this).
@JMendyk
Copy link
Contributor

JMendyk commented Sep 3, 2018

ON CONFLICT syntax for INSERT was added in version 9.5 (see: INSERT in versions 9.4 and 9.5).

@Laurelai
Copy link

Laurelai commented Sep 3, 2018

Also affected by this issue

@joachimesque
Copy link

Also affected by the issue.

@nemsia
Copy link

nemsia commented Sep 5, 2018

Also affected by the issue on Debian jessie

@abochmann
Copy link

abochmann commented Sep 7, 2018

As for Debian, postgresql 9.6 is in jessie-backports: https://packages.debian.org/jessie-backports/postgresql
See https://backports.debian.org/Instructions/#index2h2 on how to add that to your sources. I think upgrading Postgres requires some manual intervention, but the relevant notes should be included.

@Laurelai
Copy link

Laurelai commented Sep 7, 2018

Any advice for centos 7

@saper
Copy link
Contributor

saper commented Sep 8, 2018

@Laurelai For CentOS and other RedHat derivatives PGDG (PostgreSQL Development Group) publishes very good RPMs, but migrating to use them may not be straightforward.

@Laurelai
Copy link

Laurelai commented Sep 8, 2018

Its sure not, i tried today, did so now my timelines are gone ^_^

@Gargron
Copy link
Member

Gargron commented Oct 7, 2018

Could you please tell me if #8903 solves your issue sufficiently?

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

8 participants