Giter Club home page Giter Club logo

docker_postgres_upgrade's Introduction

Docker PostgreSQL 12 to 16 upgrade

Testing PostgreSQL 12 to 16 upgrade on Centos 8 Stream using Docker

Building Docker image for PostgreSQL 12 to 16 upgrade using Centos 8 Stream

bash ./pg12_build_dockerfile.sh 

Result

sh-4.4# ls -l /tmp
-rw-r--r-- 1 root root 176 Feb  8 21:13 result_pg12.txt
-rw-r--r-- 1 root root 176 Feb  8 21:13 result_pg16.txt
-rw-r--r-- 1 root root 341 Feb  8 21:13 version_pg12.txt
-rw-r--r-- 1 root root 326 Feb  8 21:13 version_pg16.txt


sh-4.4# cat version_pg1*
                                               version                                                    
--------------------------------------------------------------------------------------------------------------
PostgreSQL 12.15 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20), 64-bit
(1 row)

                                             version                                                 
---------------------------------------------------------------------------------------------------------
PostgreSQL 16.2 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20), 64-bit
(1 row)


sh-4.4# cat result_pg1*
 records  |    f1    |       f2       |       f3       
----------+----------+----------------+----------------
 20000000 | 69984702 | 170042491.6762 | 469900687.4476
(1 row)

 records  |    f1    |       f2       |       f3       
----------+----------+----------------+----------------
 20000000 | 69984702 | 170042491.6762 | 469900687.4476
(1 row)

Docker PostgreSQL 11 to 15 upgrade

Testing PostgreSQL 11 to 15 upgrade on Centos 7 using Docker

Building Docker image for PostgreSQL 11 to 15 upgrade using Centos 7

bash ./pg11_build_dockerfile.sh 

Result

sh-4.2# cd /tmp; ls -l
-rw-r--r-- 1 postgres postgres 176 Feb 16 20:34 result_pg11.txt
-rw-r--r-- 1 postgres postgres 176 Feb 16 20:34 result_pg15.txt
-rw-r--r-- 1 postgres postgres 329 Feb 16 20:34 version_pg11.txt
-rw-r--r-- 1 postgres postgres 326 Feb 16 20:34 version_pg15.txt

sh-4.2# cat version_pg1*
                                             version                                                  
----------------------------------------------------------------------------------------------------------
PostgreSQL 11.19 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44), 64-bit
(1 row)

                                             version                                                 
---------------------------------------------------------------------------------------------------------
PostgreSQL 15.2 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44), 64-bit
(1 row)

sh-4.2# cat result_pg1* 
 records  |    f1    |       f2       |       f3       
----------+----------+----------------+----------------
 20000000 | 70019509 | 169984585.6851 | 469972131.3837
(1 row)

 records  |    f1    |       f2       |       f3       
----------+----------+----------------+----------------
 20000000 | 70019509 | 169984585.6851 | 469972131.3837
(1 row)

docker_postgres_upgrade's People

Contributors

norsoulx avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.