Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nick@K42J:~$ curl https://install.citusdata.com/community/deb.sh | sudo bash
- nick@K42J:~$ sudo apt install postgresql-12-citus-10.2
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following additional packages will be installed:
- libcommon-sense-perl libjson-perl libjson-xs-perl libllvm10 libpq5 libtypes-serialiser-perl postgresql-12 postgresql-client-12
- postgresql-client-common postgresql-common sysstat
- Suggested packages:
- postgresql-doc-12 isag
- The following NEW packages will be installed:
- libcommon-sense-perl libjson-perl libjson-xs-perl libllvm10 libpq5 libtypes-serialiser-perl postgresql-12 postgresql-12-citus-10.2
- postgresql-client-12 postgresql-client-common postgresql-common sysstat
- 0 upgraded, 12 newly installed, 0 to remove and 261 not upgraded.
- Need to get 35,1 MB of archives.
- After this operation, 140 MB of additional disk space will be used.
- Do you want to continue? [Y/n] Y
- Get:1 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 libjson-perl all 4.02000-2 [80,9 kB]
- Get:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-common all 257.pgdg20.04+1 [94,3 kB]
- Get:3 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 libcommon-sense-perl amd64 3.74-2build6 [20,1 kB]
- Get:4 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 libtypes-serialiser-perl all 1.0-1 [12,1 kB]
- Get:5 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 libjson-xs-perl amd64 4.020-1build1 [83,7 kB]
- Get:6 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 libllvm10 amd64 1:10.0.0-4ubuntu1 [15,3 MB]
- Get:7 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-common all 257.pgdg20.04+1 [239 kB]
- Get:8 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 libpq5 amd64 16.2-1.pgdg20.04+1 [214 kB]
- Get:10 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-12 amd64 12.18-1.pgdg20.04+1 [1 431 kB]
- Get:9 https://repos.citusdata.com/community/ubuntu focal/main amd64 postgresql-12-citus-10.2 amd64 10.2.9.citus-1 [2 286 kB]
- Get:11 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-12 amd64 12.18-1.pgdg20.04+1 [14,9 MB]
- Get:12 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 sysstat amd64 12.2.0-2ubuntu0.3 [448 kB]
- Fetched 35,1 MB in 16s (2 211 kB/s)
- Preconfiguring packages ...
- Selecting previously unselected package libjson-perl.
- (Reading database ... 123801 files and directories currently installed.)
- Preparing to unpack .../00-libjson-perl_4.02000-2_all.deb ...
- Unpacking libjson-perl (4.02000-2) ...
- Selecting previously unselected package postgresql-client-common.
- Preparing to unpack .../01-postgresql-client-common_257.pgdg20.04+1_all.deb ...
- Unpacking postgresql-client-common (257.pgdg20.04+1) ...
- Selecting previously unselected package postgresql-common.
- Preparing to unpack .../02-postgresql-common_257.pgdg20.04+1_all.deb ...
- Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common'
- Unpacking postgresql-common (257.pgdg20.04+1) ...
- Selecting previously unselected package libcommon-sense-perl.
- Preparing to unpack .../03-libcommon-sense-perl_3.74-2build6_amd64.deb ...
- Unpacking libcommon-sense-perl (3.74-2build6) ...
- Selecting previously unselected package libtypes-serialiser-perl.
- Preparing to unpack .../04-libtypes-serialiser-perl_1.0-1_all.deb ...
- Unpacking libtypes-serialiser-perl (1.0-1) ...
- Selecting previously unselected package libjson-xs-perl.
- Preparing to unpack .../05-libjson-xs-perl_4.020-1build1_amd64.deb ...
- Unpacking libjson-xs-perl (4.020-1build1) ...
- Selecting previously unselected package libllvm10:amd64.
- Preparing to unpack .../06-libllvm10_1%3a10.0.0-4ubuntu1_amd64.deb ...
- Unpacking libllvm10:amd64 (1:10.0.0-4ubuntu1) ...
- Selecting previously unselected package libpq5:amd64.
- Preparing to unpack .../07-libpq5_16.2-1.pgdg20.04+1_amd64.deb ...
- Unpacking libpq5:amd64 (16.2-1.pgdg20.04+1) ...
- Selecting previously unselected package postgresql-client-12.
- Preparing to unpack .../08-postgresql-client-12_12.18-1.pgdg20.04+1_amd64.deb ...
- Unpacking postgresql-client-12 (12.18-1.pgdg20.04+1) ...
- Selecting previously unselected package postgresql-12.
- Preparing to unpack .../09-postgresql-12_12.18-1.pgdg20.04+1_amd64.deb ...
- Unpacking postgresql-12 (12.18-1.pgdg20.04+1) ...
- Selecting previously unselected package postgresql-12-citus-10.2.
- Preparing to unpack .../10-postgresql-12-citus-10.2_10.2.9.citus-1_amd64.deb ...
- Unpacking postgresql-12-citus-10.2 (10.2.9.citus-1) ...
- Selecting previously unselected package sysstat.
- Preparing to unpack .../11-sysstat_12.2.0-2ubuntu0.3_amd64.deb ...
- Unpacking sysstat (12.2.0-2ubuntu0.3) ...
- Setting up postgresql-client-common (257.pgdg20.04+1) ...
- Setting up libpq5:amd64 (16.2-1.pgdg20.04+1) ...
- Setting up libcommon-sense-perl (3.74-2build6) ...
- Setting up libllvm10:amd64 (1:10.0.0-4ubuntu1) ...
- Setting up postgresql-client-12 (12.18-1.pgdg20.04+1) ...
- update-alternatives: using /usr/share/postgresql/12/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
- Setting up libtypes-serialiser-perl (1.0-1) ...
- Setting up libjson-perl (4.02000-2) ...
- Setting up sysstat (12.2.0-2ubuntu0.3) ...
- Creating config file /etc/default/sysstat with new version
- update-alternatives: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) in auto mode
- Created symlink /etc/systemd/system/multi-user.target.wants/sysstat.service → /lib/systemd/system/sysstat.service.
- Setting up libjson-xs-perl (4.020-1build1) ...
- Setting up postgresql-common (257.pgdg20.04+1) ...
- Adding user postgres to group ssl-cert
- Creating config file /etc/postgresql-common/createcluster.conf with new version
- Building PostgreSQL dictionaries from installed myspell/hunspell packages...
- en_us
- Removing obsolete dictionary files:
- '/etc/apt/trusted.gpg.d/apt.postgresql.org.gpg' -> '/usr/share/postgresql-common/pgdg/apt.postgresql.org.gpg'
- Created symlink /etc/systemd/system/multi-user.target.wants/postgresql.service → /lib/systemd/system/postgresql.service.
- Setting up postgresql-12 (12.18-1.pgdg20.04+1) ...
- Creating new PostgreSQL cluster 12/main ...
- /usr/lib/postgresql/12/bin/initdb -D /var/lib/postgresql/12/main --auth-local peer --auth-host md5
- The files belonging to this database system will be owned by user "postgres".
- This user must also own the server process.
- The database cluster will be initialized with locales
- COLLATE: en_US.UTF-8
- CTYPE: en_US.UTF-8
- MESSAGES: en_US.UTF-8
- MONETARY: ru_RU.UTF-8
- NUMERIC: ru_RU.UTF-8
- TIME: ru_RU.UTF-8
- The default database encoding has accordingly been set to "UTF8".
- The default text search configuration will be set to "english".
- Data page checksums are disabled.
- fixing permissions on existing directory /var/lib/postgresql/12/main ... ok
- creating subdirectories ... ok
- selecting dynamic shared memory implementation ... posix
- selecting default max_connections ... 100
- selecting default shared_buffers ... 128MB
- selecting default time zone ... Asia/Omsk
- creating configuration files ... ok
- running bootstrap script ... ok
- performing post-bootstrap initialization ... ok
- syncing data to disk ... ok
- Success. You can now start the database server using:
- pg_ctlcluster 12 main start
- Setting up postgresql-12-citus-10.2 (10.2.9.citus-1) ...
- Processing triggers for systemd (245.4-4ubuntu3.20) ...
- Processing triggers for man-db (2.9.1-1) ...
- Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
- nick@K42J:~$ pg_ctlcluster 12 main start
- Warning: the cluster will not be running as a systemd service. Consider using systemctl:
- sudo systemctl start postgresql@12-main
- Error: You must run this program as the cluster owner (postgres) or root
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement