merge file_exists_in_directory and _fileExistsInDirectory functions and move into common file dumputils.c

From: Mahendra Singh Thalor <mahi6run(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: merge file_exists_in_directory and _fileExistsInDirectory functions and move into common file dumputils.c
Date: 2025-04-10 17:11:33
Message-ID: CAKYtNAqwRS7v8QuivAY0EKvgV9bSdNyCVrYYT1WsUNyXjN27vQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,
We have file_exists_in_directory function in pg_restore.c and same
code we are using in _fileExistsInDirectory function in pg_backup_archiver.c
also.
Here, I am attaching a patch to move these duplicate functions into
dumputils.c file

--
Thanks and Regards
Mahendra Singh Thalor
EnterpriseDB: http://www.enterprisedb.com

Attachment Content-Type Size
v01-move-duplicate-code-of-file_exists_in_directory-and-.patch application/octet-stream 4.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mahendra Singh Thalor 2025-04-10 17:12:57 Re: as per commit 643a1a61985bef2590496, move create/open dir code to function using switch case of pg_backup_directory.c file also
Previous Message David G. Johnston 2025-04-10 16:35:23 Re: Capturing both IP address and hostname in the log