pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ravi Krishna <srkrishna1@aol.com>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: postgres server process crashes when using odbc_fdw
Date: Wed, 17 Oct 2018 11:17:11 -0400
Message-ID: <203483C5-DEE0-48D2-A254-6154BF53AFE0@aol.com> (raw)
In-Reply-To: <39636FD1-D9F8-4BEF-B692-D604EF5FF1E2@aol.com>
References: <1FEA4DD2-7B6A-4444-A4FD-C7B03E96BBB6@aol.com>
	<39636FD1-D9F8-4BEF-B692-D604EF5FF1E2@aol.com>

It turned out that enabling ODBC trace was causing PG to crash.  Once disabled it started working, but found another issue.
All object names in DB2 is assumed to be upper case.  odbc_fdw sends queries like this


select "fld1","fld2" from "schema_name"."table_name".

So the foreign table in PG has to created in upper case within quotes.  It is bit of an annoyance.





view thread (12+ messages)  latest in thread

Message-ID: <203483C5-DEE0-48D2-A254-6154BF53AFE0@aol.com>
Permalink:  ../203483C5-DEE0-48D2-A254-6154BF53AFE0@aol.com/
Also on:    postgresql.org/message-id/203483C5-DEE0-48D2-A254-6154BF53AFE0@aol.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: srkrishna1@aol.com
  Subject: Re: postgres server process crashes when using odbc_fdw
  In-Reply-To: <203483C5-DEE0-48D2-A254-6154BF53AFE0@aol.com>
  References: <1FEA4DD2-7B6A-4444-A4FD-C7B03E96BBB6@aol.com> <39636FD1-D9F8-4BEF-B692-D604EF5FF1E2@aol.com> <203483C5-DEE0-48D2-A254-6154BF53AFE0@aol.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox