code to deparse parameter in postgres_fdw is duplicated

From: Ashutosh Bapat <ashutosh(dot)bapat(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: code to deparse parameter in postgres_fdw is duplicated
Date: 2016-01-07 11:35:36
Message-ID: CAFjFpRc1W3U9cXWdUxRtqCkXwgzDhLQwpYdhYKngpus-wVC_7w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,
The code to deparse a Var or Param node as a parameter in the query looks
same except the member names for getting type and typmod. PFA patch to push
that into a function to deduplicate it. Regression and tests in
contrib/postgres_fdw run clean with this patch.

--
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company

Attachment Content-Type Size
pg_dep_par.patch text/x-patch 4.2 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2016-01-07 11:50:07 Re: checkpointer continuous flushing
Previous Message Dilip Kumar 2016-01-07 11:34:25 Re: parallel joins, and better parallel explain