Thursday, July 04, 2024

Ubuntu18 Upgrade Postgres10 to Postgres12

 

sudo apt-get install curl ca-certificates gnupg
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
 
 
#pgdg.list #update
deb https://apt-archive.postgresql.org/pub/repos/apt bionic-pgdg main 

 

$ sudo apt update
$ sudo apt install postgresql-12

 

Error that force us to update

psycopg2.errors.UndefinedFunction: function jsonb_path_query_array(jsonb, unknown) does not exist
LINE 1: ...ate_name_index" ON "product_template" USING gin ((jsonb_path...

 
 

No comments:

PostgreSQL command tools

  Database size select pg_size_pretty( pg_database_size('dbname') ); Tables order by size select   table_name,   pg_size_pretty(pg_...