Syntax error near "=>" when running pg_upgrade 9.4 to 9.5

wmakley

I am unable to upgrade my postgresql server from 9.4 to 9.5 due to the following error message:

pg_restore: creating OPERATOR "public.->"
pg_restore: creating OPERATOR "public.<@"
pg_restore: creating OPERATOR "public.=>"
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 1617; 2617 17937 OPERATOR => william
pg_restore: [archiver (db)] could not execute query: ERROR:  syntax error at or near "=>"
LINE 1: CREATE OPERATOR => (
                        ^
    Command was: CREATE OPERATOR => (
    PROCEDURE = "tconvert",
    LEFTARG = "text",
    RIGHTARG = "text"
);

I have not been able to find anything relevant by googling. The most relevant thing I can find is someone who encountered this issue with a much older version of hstore, and the fix is not clear.

I am using homebrew on a Mac. I would work around the issue with pg_dumpall, but I can no longer run that because the 9.4 binaries are loading the libs for 9.5 following the upgrade. Is there a way around this?

phemmer

The other solutions either were not options, or they didn't work.
The solution that worked for me was:

ALTER EXTENSION hstore UPDATE TO '1.1';

Source: https://www.postgresql.org/message-id/22170.1457479307%40sss.pgh.pa.us

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Syntax error at or near "when" in PostgreSQL

From Dev

Error when performing an upgrade in Debian 9

From Dev

PG::SyntaxError: ERROR: syntax error at or near "PARALLEL"

From Dev

Syntax error near unexpected token when running spring boot jar as service

From Dev

IE9 throws the error: 'Error: An internal error occurred in the Microsoft Internet extensions' when running angular app

From Dev

ERROR: Syntax error at or near ","

From Dev

ERROR: syntax error at or near "TO"

From Dev

Running ASP.NET 5 on Cloud 9

From Dev

I have a cloud 9 error while running the app in cloud 9

From Dev

Error when running SQL syntax

From Dev

(parser) syntax error on "array: .word 2,5,3,7,9,(some random numbers)"

From Dev

Cloud9 error when running project "Error retrieving pid file"

From Dev

Error while running Sinatra app on Cloud 9

From Dev

Error While running DotNetNuke 9 on a server

From Dev

Error running node in cloud9 IDE?

From Dev

ActiveRecord::StatementInvalid (PG::SyntaxError: ERROR: syntax error at or near "."

From Dev

Warning: pg_query(): Query failed: ERROR: syntax error at or near

From Dev

Warning: pg_query(): Query failed: ERROR: syntax error at or near

From Dev

ActiveRecord::StatementInvalid (PG::SyntaxError: ERROR: syntax error at or near "."

From Dev

gem paranoia - PG::SyntaxError: ERROR: syntax error at or near "FROM"

From Dev

Incorrect syntax near the keyword 'if' when inside function, but no error when not in a function

From Dev

Postgresql Syntax error at or near " THEN "

From Dev

Syntax error at or near "WHERE"

From Dev

Postgresql : syntax error at or near "-"

From Dev

Postgres syntax error at or near "IF"

From Dev

Syntax error near INTERSECT

From Dev

Syntax Error near SQLSTATE

From Dev

PostgreSQL: Syntax Error At or Near TO

From Dev

PostgreSQL - Syntax error at or near

Related Related

  1. 1

    Syntax error at or near "when" in PostgreSQL

  2. 2

    Error when performing an upgrade in Debian 9

  3. 3

    PG::SyntaxError: ERROR: syntax error at or near "PARALLEL"

  4. 4

    Syntax error near unexpected token when running spring boot jar as service

  5. 5

    IE9 throws the error: 'Error: An internal error occurred in the Microsoft Internet extensions' when running angular app

  6. 6

    ERROR: Syntax error at or near ","

  7. 7

    ERROR: syntax error at or near "TO"

  8. 8

    Running ASP.NET 5 on Cloud 9

  9. 9

    I have a cloud 9 error while running the app in cloud 9

  10. 10

    Error when running SQL syntax

  11. 11

    (parser) syntax error on "array: .word 2,5,3,7,9,(some random numbers)"

  12. 12

    Cloud9 error when running project "Error retrieving pid file"

  13. 13

    Error while running Sinatra app on Cloud 9

  14. 14

    Error While running DotNetNuke 9 on a server

  15. 15

    Error running node in cloud9 IDE?

  16. 16

    ActiveRecord::StatementInvalid (PG::SyntaxError: ERROR: syntax error at or near "."

  17. 17

    Warning: pg_query(): Query failed: ERROR: syntax error at or near

  18. 18

    Warning: pg_query(): Query failed: ERROR: syntax error at or near

  19. 19

    ActiveRecord::StatementInvalid (PG::SyntaxError: ERROR: syntax error at or near "."

  20. 20

    gem paranoia - PG::SyntaxError: ERROR: syntax error at or near "FROM"

  21. 21

    Incorrect syntax near the keyword 'if' when inside function, but no error when not in a function

  22. 22

    Postgresql Syntax error at or near " THEN "

  23. 23

    Syntax error at or near "WHERE"

  24. 24

    Postgresql : syntax error at or near "-"

  25. 25

    Postgres syntax error at or near "IF"

  26. 26

    Syntax error near INTERSECT

  27. 27

    Syntax Error near SQLSTATE

  28. 28

    PostgreSQL: Syntax Error At or Near TO

  29. 29

    PostgreSQL - Syntax error at or near

HotTag

Archive