Re: Optimize common expressions in projection evaluation - Mailing list pgsql-hackers

From Peifeng Qiu
Subject Re: Optimize common expressions in projection evaluation
Date
Msg-id CAPH51bc0WbuJ0ym_dDGuPvRZPpE3OMvfNio79fPr836pua=cJw@mail.gmail.com
Whole thread Raw
In response to Re: Optimize common expressions in projection evaluation  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Optimize common expressions in projection evaluation
Re: Optimize common expressions in projection evaluation
List pgsql-hackers
> the need for this code seems not that great.  But as to the code itself I'm unable to properly judge.
A simplified version of my use case is like this:
CREATE FOREIGN TABLE ft(rawdata json);
INSERT INTO tbl SELECT (convert_func(rawdata)).* FROM ft;
We have a foreign data source that can emit json data in different
formats. We need different
convert_func to extract the actual fields out. The client know which
function to use, but as
the each json may have hundreds of columns, the performance is very poor.

Best regards,
Peifeng Qiu



pgsql-hackers by date:

Previous
From: Dilip Kumar
Date:
Subject: Re: Avoid streaming the transaction which are skipped (in corner cases)
Next
From: "David G. Johnston"
Date:
Subject: Re: Optimize common expressions in projection evaluation