Re: [HACKERS] How to refer to resource files from UDFs written in C

2017-06-09 Thread Supun Nakandala
On Fri, Jun 9, 2017 at 3:05 AM, Heikki Linnakangas wrote: > On 06/09/2017 08:56 AM, Supun Nakandala wrote: > >> Hi hackers, >> >> I am trying to extend PostgreSQL by adding UDT and UDF for a custom use >> case and I am using C language extensions to do that. >> >> However, I

Re: [HACKERS] How to refer to resource files from UDFs written in C

2017-06-09 Thread Tom Lane
Supun Nakandala writes: > However, I have a requirement of reading a text file from one of the C > functions. The compiled *.so files are placed in the "pg_config > --pkglibdir" directory and tried copying my text files there but it didn't > work. I found that, when

Re: [HACKERS] How to refer to resource files from UDFs written in C

2017-06-09 Thread Heikki Linnakangas
On 06/09/2017 08:56 AM, Supun Nakandala wrote: Hi hackers, I am trying to extend PostgreSQL by adding UDT and UDF for a custom use case and I am using C language extensions to do that. However, I have a requirement of reading a text file from one of the C functions. The compiled *.so files are

[HACKERS] How to refer to resource files from UDFs written in C

2017-06-08 Thread Supun Nakandala
Hi hackers, I am trying to extend PostgreSQL by adding UDT and UDF for a custom use case and I am using C language extensions to do that. However, I have a requirement of reading a text file from one of the C functions. The compiled *.so files are placed in the "pg_config --pkglibdir" directory