How to get Relation tuples in C function - Mailing list pgsql-hackers

From Patrick Handja
Subject How to get Relation tuples in C function
Date
Msg-id CAOKRWVBC-5B+mGATyMTzKo-aY9hNNvLw6G1Ntgu3bkBWDt_DeA@mail.gmail.com
Whole thread Raw
Responses Re: How to get Relation tuples in C function
List pgsql-hackers
Greetings!

I would like to know if there is a better way to pass a relation or if the relation name (CString) as a parameter in a C function and thus be able to manipulate its tuples. The documentation is available here: https://www.postgresql.org/docs/13/xfunc-c.html#id-1.8.3.13.11. But it is not quite clear enough on how to retrieve tuples. The handling of these is quite clear. The only function I'm currently using (but not working) is the TupleDesc TypeGetTupleDesc (Oid typeoid, List * colaliases) function. Do we have a function like TupleDesc RelationNameGetTupleDesc (const char * relname) (Old and deprecated)?

regards,


Andjasubu Bungama, Patrick 

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Some regular-expression performance hacking
Next
From: Ranier Vilela
Date:
Subject: Re: Possible dereference null return (src/backend/replication/logical/reorderbuffer.c)