Re: Review: Patch to compute Max LSN of Data Pages - Mailing list pgsql-hackers

From Amit kapila
Subject Re: Review: Patch to compute Max LSN of Data Pages
Date
Msg-id 6C0B27F7206C9E4CA54AE035729E9C383BEA1DF3@szxeml509-mbx
Whole thread Raw
In response to Re: Review: Patch to compute Max LSN of Data Pages  (Muhammad Usama <m.usama@gmail.com>)
Responses Re: Review: Patch to compute Max LSN of Data Pages  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi Muhammad,

On Friday, December 07, 2012 7:43 PM Muhammad Usama wrote:
>Hi Amit

On Mon, Dec 3, 2012 at 6:56 PM, Amit kapila <amit.kapila@huawei.com<mailto:amit.kapila@huawei.com>> wrote:
>>I think we should expect provided path to be relative to current directory
>> or may consider it to be relative to either one of Data or CWD.
>>Because normally we expect path to be relative to CWD if some program is
>> asking for path in command line.

> Please find the attached patch to make the path relative to CWD and check if the path is under data directory.

> Works good now.

Thank you for verification.

> Although I am thinking why are you disallowing the absolute path of file. Any particular reason?

The reason to disallow absolute path is that, we need to test on multiple platforms and to keep the scope little less.
I thought we can allow absolute paths in future.



> I also had a similar point made by Alvaro to allow all the segments of the relation for a given relation file name,
oradd another option do do the same. But if everybody is fine with leaving it for the future, I do > not have any
furtherconcerns with the patch. It is good from my side. 

In my opinion we can extend the utility in future for both the below points suggested:
1. allow absolute paths in file path
2. allow to get max lsn for relation segments.

If you are also okay, then we can proceed and let Committer also share his opinion.

Thank you for reviewing the patch.

With Regards,
Amit Kapila.



pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Serious problem: media recovery fails after system or PostgreSQL crash
Next
From: Tom Lane
Date:
Subject: Re: Review: Patch to compute Max LSN of Data Pages