Re: question about relation_open

From: Rahila Syed <rahilasyed90(at)gmail(dot)com>
To: giampow(at)gmail(dot)com
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: question about relation_open
Date: 2025-01-14 11:26:56
Message-ID: CAH2L28tOY+4KG0oM9i+4Ob4Td+zsiphpj5ucTvSWVOhfpBzYDQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

>
>
> I want to call the function ReadBufferExtended
> to get the raw data of a given buffer
> and I've read in some examples that I need to call relation_open
> first, in order to get a Relation variable and also lock the relation.
>
> The function relation_open returns a non NULL pointer in my extension, but
> then the last line in the following snippet crashes postgres.
>

You mentioned that the postgres crashes. Did you mean it caused a
Segmentation fault or something else like PANIC?
If possible, can you share a core dump in that case?

Also, can you share any errors that you see in logs when postgres crashes?

Thank you,
Rahila Syed

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Giampaolo Capelli 2025-01-14 11:33:04 Re: question about relation_open
Previous Message Shlok Kyal 2025-01-14 11:23:21 Re: Adding a '--two-phase' option to 'pg_createsubscriber' utility.