pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix running out of file descriptors for spill files. 7+ messages / 1 participants [nested] [flat]
* pgsql: Fix running out of file descriptors for spill files. @ 2020-01-02 07:25 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Amit Kapila @ 2020-01-02 07:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix running out of file descriptors for spill files. Currently while decoding changes, if the number of changes exceeds a certain threshold, we spill those to disk. And this happens for each (sub)transaction. Now, while reading all these files, we don't close them until we read all the files. While reading these files, if the number of such files exceeds the maximum number of file descriptors, the operation errors out. Use PathNameOpenFile interface to open these files as that internally has the mechanism to release kernel FDs as needed to get us under the max_safe_fds limit. Reported-by: Amit Khandekar Author: Amit Khandekar Reviewed-by: Amit Kapila Backpatch-through: 9.4 Discussion: https://postgr.es/m/CAJ3gD9c-sECEn79zXw4yBnBdOttacoE-6gAyP0oy60nfs_sabQ@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d207038053837ae9365df2776371632387f6f655 Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 76 +++++++++++++++++-------- src/test/recovery/t/006_logical_decoding.pl | 40 ++++++++++++- 2 files changed, 91 insertions(+), 25 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix running out of file descriptors for spill files. @ 2020-01-02 07:25 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Amit Kapila @ 2020-01-02 07:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix running out of file descriptors for spill files. Currently while decoding changes, if the number of changes exceeds a certain threshold, we spill those to disk. And this happens for each (sub)transaction. Now, while reading all these files, we don't close them until we read all the files. While reading these files, if the number of such files exceeds the maximum number of file descriptors, the operation errors out. Use PathNameOpenFile interface to open these files as that internally has the mechanism to release kernel FDs as needed to get us under the max_safe_fds limit. Reported-by: Amit Khandekar Author: Amit Khandekar Reviewed-by: Amit Kapila Backpatch-through: 9.4 Discussion: https://postgr.es/m/CAJ3gD9c-sECEn79zXw4yBnBdOttacoE-6gAyP0oy60nfs_sabQ@mail.gmail.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f8a6d8e71b177578c4dce78dcf66293c71917844 Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 76 +++++++++++++++++-------- src/test/recovery/t/006_logical_decoding.pl | 39 ++++++++++++- 2 files changed, 90 insertions(+), 25 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix running out of file descriptors for spill files. @ 2020-01-02 07:25 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Amit Kapila @ 2020-01-02 07:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix running out of file descriptors for spill files. Currently while decoding changes, if the number of changes exceeds a certain threshold, we spill those to disk. And this happens for each (sub)transaction. Now, while reading all these files, we don't close them until we read all the files. While reading these files, if the number of such files exceeds the maximum number of file descriptors, the operation errors out. Use PathNameOpenFile interface to open these files as that internally has the mechanism to release kernel FDs as needed to get us under the max_safe_fds limit. Reported-by: Amit Khandekar Author: Amit Khandekar Reviewed-by: Amit Kapila Backpatch-through: 9.4 Discussion: https://postgr.es/m/CAJ3gD9c-sECEn79zXw4yBnBdOttacoE-6gAyP0oy60nfs_sabQ@mail.gmail.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3e3a7973523570089fa69533dcb3aa0122636d8c Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 47 +++++++++++++++---------- src/test/recovery/t/006_logical_decoding.pl | 39 +++++++++++++++++++- 2 files changed, 66 insertions(+), 20 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix running out of file descriptors for spill files. @ 2020-01-02 07:25 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Amit Kapila @ 2020-01-02 07:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix running out of file descriptors for spill files. Currently while decoding changes, if the number of changes exceeds a certain threshold, we spill those to disk. And this happens for each (sub)transaction. Now, while reading all these files, we don't close them until we read all the files. While reading these files, if the number of such files exceeds the maximum number of file descriptors, the operation errors out. Use PathNameOpenFile interface to open these files as that internally has the mechanism to release kernel FDs as needed to get us under the max_safe_fds limit. Reported-by: Amit Khandekar Author: Amit Khandekar Reviewed-by: Amit Kapila Backpatch-through: 9.4 Discussion: https://postgr.es/m/CAJ3gD9c-sECEn79zXw4yBnBdOttacoE-6gAyP0oy60nfs_sabQ@mail.gmail.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/27b5f48c79f76f61d074849640513d855cb22c2a Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 47 +++++++++++++++---------- src/test/recovery/t/006_logical_decoding.pl | 39 +++++++++++++++++++- 2 files changed, 66 insertions(+), 20 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix running out of file descriptors for spill files. @ 2020-01-02 07:25 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Amit Kapila @ 2020-01-02 07:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix running out of file descriptors for spill files. Currently while decoding changes, if the number of changes exceeds a certain threshold, we spill those to disk. And this happens for each (sub)transaction. Now, while reading all these files, we don't close them until we read all the files. While reading these files, if the number of such files exceeds the maximum number of file descriptors, the operation errors out. Use PathNameOpenFile interface to open these files as that internally has the mechanism to release kernel FDs as needed to get us under the max_safe_fds limit. Reported-by: Amit Khandekar Author: Amit Khandekar Reviewed-by: Amit Kapila Backpatch-through: 9.4 Discussion: https://postgr.es/m/CAJ3gD9c-sECEn79zXw4yBnBdOttacoE-6gAyP0oy60nfs_sabQ@mail.gmail.com Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ba5b4e506489b1f2c66c47134a5bd7404104b80b Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 40 +++++++++++++++---------- 1 file changed, 25 insertions(+), 15 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix running out of file descriptors for spill files. @ 2020-01-02 07:25 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Amit Kapila @ 2020-01-02 07:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix running out of file descriptors for spill files. Currently while decoding changes, if the number of changes exceeds a certain threshold, we spill those to disk. And this happens for each (sub)transaction. Now, while reading all these files, we don't close them until we read all the files. While reading these files, if the number of such files exceeds the maximum number of file descriptors, the operation errors out. Use PathNameOpenFile interface to open these files as that internally has the mechanism to release kernel FDs as needed to get us under the max_safe_fds limit. Reported-by: Amit Khandekar Author: Amit Khandekar Reviewed-by: Amit Kapila Backpatch-through: 9.4 Discussion: https://postgr.es/m/CAJ3gD9c-sECEn79zXw4yBnBdOttacoE-6gAyP0oy60nfs_sabQ@mail.gmail.com Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a6f4f407ada026007d37ab9d494bb6380ec12527 Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 40 +++++++++++++++---------- 1 file changed, 25 insertions(+), 15 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix running out of file descriptors for spill files. @ 2020-01-02 07:25 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Amit Kapila @ 2020-01-02 07:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix running out of file descriptors for spill files. Currently while decoding changes, if the number of changes exceeds a certain threshold, we spill those to disk. And this happens for each (sub)transaction. Now, while reading all these files, we don't close them until we read all the files. While reading these files, if the number of such files exceeds the maximum number of file descriptors, the operation errors out. Use PathNameOpenFile interface to open these files as that internally has the mechanism to release kernel FDs as needed to get us under the max_safe_fds limit. Reported-by: Amit Khandekar Author: Amit Khandekar Reviewed-by: Amit Kapila Backpatch-through: 9.4 Discussion: https://postgr.es/m/CAJ3gD9c-sECEn79zXw4yBnBdOttacoE-6gAyP0oy60nfs_sabQ@mail.gmail.com Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1ad47e8757bb95058e70fd00d5e619833c83df40 Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 40 +++++++++++++++---------- 1 file changed, 25 insertions(+), 15 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2020-01-02 07:25 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-01-02 07:25 pgsql: Fix running out of file descriptors for spill files. Amit Kapila <akapila@postgresql.org> 2020-01-02 07:25 pgsql: Fix running out of file descriptors for spill files. Amit Kapila <akapila@postgresql.org> 2020-01-02 07:25 pgsql: Fix running out of file descriptors for spill files. Amit Kapila <akapila@postgresql.org> 2020-01-02 07:25 pgsql: Fix running out of file descriptors for spill files. Amit Kapila <akapila@postgresql.org> 2020-01-02 07:25 pgsql: Fix running out of file descriptors for spill files. Amit Kapila <akapila@postgresql.org> 2020-01-02 07:25 pgsql: Fix running out of file descriptors for spill files. Amit Kapila <akapila@postgresql.org> 2020-01-02 07:25 pgsql: Fix running out of file descriptors for spill files. Amit Kapila <akapila@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox