Alternate methods for multiple rows input/output to a function.

2019-05-28 Thread RAJIN RAJ K
--> Function ' filter_id ' filters the ID's based on some conditions. --> Input is set of ID's. (Not directly taking the input since there is no provision to pass multiple rows to a function) create function filter_id() return table (id bigint) begin --> Assuming input table is already created #t

Table as argument in postgres function

2019-05-19 Thread RAJIN RAJ K
Hi, I'm trying to convert SAP Hana procedures in PG and i'm not able to handle below scenario in Postgres 11 Scenario: I want to pass a table (Multiple rows) to function and use it inside as a temp table. Sample Code: create a table tbl_id (id int, name character varying (10)); insert few rows

Table as argument in postgres function

2019-05-17 Thread RAJIN RAJ K
I'm trying to convert SAP Hana procedures in PG and i'm not able to handle below scenario in Postgres 11 Scenario: I want to pass a table (Multiple rows) to function and use it inside as a temp table. Sample Code: create a table tbl_id (id int, name character varying (10)); insert few rows to tb