Re: NLS for extension

2024-03-22 Thread Ed Behn
 AM Robert Haas wrote: > On Thu, Mar 21, 2024 at 7:49 AM Ed Behn wrote: > > I'll start by admitting that I am a typical American who only speaks > one language. > > I maintain the PL./Haskell extension ( > https://github.com/ed-o-saurus/PLHaskell). I recently receive

NLS for extension

2024-03-21 Thread Ed Behn
Good day- I'll start by admitting that I am a typical American who only speaks one language. I maintain the PL./Haskell extension ( https://github.com/ed-o-saurus/PLHaskell). I recently received a bug report from a user who is unable to load the extension when they have set lc_messages to

No Callbacks on FATAL

2023-01-11 Thread Ed Behn
I'm developing a module that implements Haskell as a procedural language ( https://www.postgresql.org/about/news/plhaskell-v10-released-2519/) I'm using a callback function that is called when a memory context is deleted to remove a temporary file. This works fine when the transaction ends

Accessing fields past CATALOG_VARLEN

2022-01-03 Thread Ed Behn
I'm trying to write a C-language function to be compiled into a shared module to be loaded by Postgres. In it, I have the OID of a function and I need to get information from the pg_proc table. So far, I have: HeapTuple procTuple; > Form_pg_proc procStruct; > procTuple =

Get Columns from Plan

2018-07-22 Thread Ed Behn
I'm tinkering with the idea of creating a Procedural Language plugin for Haskell. As such I'm reading up on the SPI and prepared statements. The idea is that a statement will be prepared at compile time and executed at run-time. Therefore, I want to be able to determine the columns (names and