Re: [HACKERS] How to compare different datums within from a tuple?

2015-08-12 Thread Peter Moser
Am 11.08.2015 um 13:41 schrieb Anastasia Lubennikova: Can someone tell me, how I can compare two datum fields, when I do not know the data type in advance inside an executor function? In a nutshell, there is no way to compare Datums. Datum is an abstact data type. It's the backend int

Re: [HACKERS] How to compare different datums within from a tuple?

2015-08-12 Thread Peter Moser
Am 11.08.2015 um 21:03 schrieb Peter Eisentraut: On 8/10/15 12:36 PM, Peter Moser wrote: Can someone tell me, how I can compare two datum fields, when I do not know the data type in advance inside an executor function? For example, "x less than y" where x and y are of various types that form

Re: [HACKERS] How to compare different datums within from a tuple?

2015-08-11 Thread Peter Eisentraut
On 8/10/15 12:36 PM, Peter Moser wrote: > Can someone tell me, how I can compare two datum fields, when I do not > know the data type in advance inside an executor function? > > For example, "x less than y" where x and y are of various types that > form intervals. I have found the method ExecTuple

Re: [HACKERS] How to compare different datums within from a tuple?

2015-08-11 Thread Anastasia Lubennikova
> > Can someone tell me, how I can compare two datum fields, when I do not > know the data type in advance inside an executor function? > In a nutshell, there is no way to compare Datums. Datum is an abstact data type. It's the backend internal representation of a single value of any SQL data type

[HACKERS] How to compare different datums within from a tuple?

2015-08-10 Thread Peter Moser
Hello, I try to write my first patch. It is too early to tell more about it, but I am just fiddling around with some prototypes. Can someone tell me, how I can compare two datum fields, when I do not know the data type in advance inside an executor function? For example, "x less than y" wher