Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Facebook
Downloads
Home
>
mailing lists
parallel index creation: maintenance_work_mem not honored? - Mailing list pgsql-admin
From
Fabio Pardi
Subject
parallel index creation: maintenance_work_mem not honored?
Date
June 20, 2022
12:42:44
Msg-id
13fa6c59-16bc-9945-f913-2e0c58d34d12@portavita.eu
Whole thread
Raw
Responses
Re: parallel index creation: maintenance_work_mem not honored?
(Peter Geoghegan <pg@bowt.ie>)
List
pgsql-admin
Tree view
Hi all,
I noticed that after an upgrade from 9.6 to 14.x, Postgres started producing temp files.
I narrowed down the behavior to parallel operations.
I was able to reproduce the following on a test machine running latest Postgres 14.4 on Ubuntu 18.04
CREATE TABLE test_parallel (i int);
INSERT INTO test_parallel VALUES (generate_series(0,10000000));
table size: 346 MB
maintenance_work_mem = '5GB' (but the same would happen if we set much higher values)
CREATE INDEX test_parallel_i_idx ON test_parallel (i);
... LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp4611.1.sharedfileset/2.0", size 37879808
... STATEMENT: CREATE INDEX test_parallel_i_idx ON test_parallel (i);
... LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp4611.1.sharedfileset/0.0", size 59326464
... STATEMENT: CREATE INDEX test_parallel_i_idx ON test_parallel (i);
... LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp4611.1.sharedfileset/1.0", size 103194624
... STATEMENT: CREATE INDEX test_parallel_i_idx ON test_parallel (i);
After disabling parallelism with:
ALTER TABLE test_parallel SET (parallel_workers = 0);
The same 'CREATE INDEX' statement does not produce temp files.
Is this behavior expected? I cannot find mentions on the documentation nor on the literature available to me.
regards,
fabio pardi
pgsql-admin
by date:
Previous
From:
Kenny Bachman
Date:
20 June 2022, 07:54:34
Subject:
Re: postrgesql query planner wrong desicion
Next
From:
Peter Geoghegan
Date:
20 June 2022, 17:47:21
Subject:
Re: parallel index creation: maintenance_work_mem not honored?
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
I confirm that I have read and accepted PostgresPro’s
Privacy Policy
.
I agree to get Postgres Pro discount offers and other marketing communications.
✖
×
×
Everywhere
Documentation
Mailing list
List:
all lists
pgsql-general
pgsql-hackers
buildfarm-members
pgadmin-hackers
pgadmin-support
pgsql-admin
pgsql-advocacy
pgsql-announce
pgsql-benchmarks
pgsql-bugs
pgsql-chat
pgsql-cluster-hackers
pgsql-committers
pgsql-cygwin
pgsql-docs
pgsql-hackers-pitr
pgsql-hackers-win32
pgsql-interfaces
pgsql-jdbc
pgsql-jobs
pgsql-novice
pgsql-odbc
pgsql-patches
pgsql-performance
pgsql-php
pgsql-pkg-debian
pgsql-pkg-yum
pgsql-ports
pgsql-rrreviewers
pgsql-ru-general
pgsql-sql
pgsql-students
pgsql-testers
pgsql-translators
pgsql-www
psycopg
Period
anytime
within last day
within last week
within last month
within last 6 months
within last year
Sort by
date
reverse date
rank
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
By continuing to browse this website, you agree to the use of cookies. Go to
Privacy Policy
.
I accept cookies