-
Notifications
You must be signed in to change notification settings - Fork 48
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
Compression table does not occur #3
Comments
Hi, If you do not need to re-index, you should use '-r' or '--no-reindex' parameter then. Best wishes. |
You understood me wrong. |
On Thu, Oct 29, 2015 at 2:29 PM, Pavel Bobrovnikov <[email protected]
The key issue here: approximately 19.240% can be compacted, it's less If you would like to compress table anyway you should use force mode: Maxim Boguk Phone RU: +7 910 405 4718 LinkedIn: http://www.linkedin.com/pub/maksym-boguk/80/b99/b1b "People problems are solved with people. |
On Thu, Oct 29, 2015 at 2:38 PM, Pavel Bobrovnikov <[email protected]
Maxim Boguk Phone RU: +7 910 405 4718 LinkedIn: http://www.linkedin.com/pub/maksym-boguk/80/b99/b1b "People problems are solved with people. |
Hi,
I run compression procedure is started with the command:
[root@hostname]# perl /tmp/pgcompacttable-master/bin/pgcompacttable -U postgres -d database -t table
Thu Oct 29 10:37:55 2015 Connecting to database
Thu Oct 29 10:37:55 2015 Postgress backend pid: 25779
Thu Oct 29 10:37:56 2015 Handling tables. Attempt 1
Thu Oct 29 14:14:51 2015 Statistics: 48059264 pages (65754320 pages including toasts and indexes) , approximately 19.240% (9249084 pages) can be compacted reducing the size by 70.565GB.
Thu Oct 29 14:21:22 2015 Reindex queries: public.Таблицаtable_pkey, initial size 2882369 pages (21.991GB), will be reduced by 51% (11.328GB)
Thu Oct 29 14:21:22 2015 CREATE UNIQUE INDEX CONCURRENTLY pgcompact_index_25771 ON table USING btree (id); --database
Thu Oct 29 14:21:22 2015 BEGIN; SET LOCAL statement_timeout TO 1000;
ALTER TABLE "public"."table" DROP CONSTRAINT "Таблицаtable_pkey";
ALTER TABLE "public"."table" ADD CONSTRAINT "Таблицаtable_pkey" PRIMARY KEY USING INDEX pgcompact_index_25771;
END;; --database
Thu Oct 29 14:24:08 2015 Processing complete.
Thu Oct 29 14:24:08 2015 Processing results: size reduced by 256.000KB (-130.172MB including toasts and indexes) in total.
Thu Oct 29 14:24:08 2015 Disconnecting from database
[Thu Oct 29 14:24:08 2015] Processing complete: 1 retries to process has been done
[Thu Oct 29 14:24:08 2015] Processing results: size reduced by 256.000KB (-130.172MB including toasts and indexes) in total, 256.000KB (-130.172MB) database.
Why not start the procedures for data compression and not run for re-indexing procedure ?
Thank you.
The text was updated successfully, but these errors were encountered: