pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alanoly Andrews <alanolya@invera.com>
To: 'Inoue, Hiroshi' <inoue@tpf.co.jp>
Cc: 'pgsql-odbc@postgresql.org' <pgsql-odbc@postgresql.org>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Subject: Re: FW: [GENERAL] Re: [ADMIN] Cannot retrieve images inserted	through VB and odbc, after a table reorganization.
Date: Wed, 10 Sep 2014 19:43:18 +0000
Message-ID: <674ea70fda424e9d89c16db36ebca9fd@exch1.invera.com> (raw)
In-Reply-To: <540F95CC.9090603@tpf.co.jp>
References: <2f7103a1a1ff4bd28ba0cd9d71f92c6e@exch1.invera.com>
	<540E41D2.1080103@tpf.co.jp>
	<a0bdd365f82b435da6febd1ed74645ad@exch1.invera.com>
	<540F95CC.9090603@tpf.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Thanks, Hiroshi. We were able to resolve the issue.

After we generated the MyLog we found in the log that the problem was that the odbc user did not have permission to access the large object. Apparently in Postgres 8.4 and lower, all large objects in pg_largeobject were created without any owner. When we upgraded the database to 9.1, all large objects were allocated the superuser "postgres" as owner. Hence odbc applications could not retrieve stored images. Newly inserted images could be retrieved, presumably because they were created with the odbc user as owner.

So, we ran a grant select, update command on all the large objects in pg_largeobjects and thereafter were able to retrieve all stored images through the odbc application.

Alanoly Andrews
Invera Inc
Tel: (514) 935-8170, ext 2328


-----Original Message-----
From: Inoue, Hiroshi [mailto:inoue@tpf.co.jp]
Sent: Tuesday, September 09, 2014 8:06 PM
To: Alanoly Andrews
Cc: 'pgsql-odbc@postgresql.org'; 'Adrian Klaver'
Subject: Re: [ODBC] FW: [GENERAL] Re: [ADMIN] Cannot retrieve images inserted through VB and odbc, after a table reorganization.

Hi Alanoly,

(2014/09/10 0:26), Alanoly Andrews wrote:
> Hi Hiroshi,
>
> Thanks for the response. I see a "mylog" file in the C:\ directory on the PC. But it is a one-liner which says "detaching process". Apart from that I don't see any other log file apart from the one which I posted earlier and which was a file that we directed the "tracing" option in ODBC to write to. Can you let me know how to produce the Mylog file and I shall try it it out.
>
> Thanks.

Please turn on the "MyLog (C:\\mylog_xxxx.log)" DataSource option using
  DataSource Administrator
or
  add debug=1; to your connection string.

regards,
Hiroshi Inoue

--
I am using the free version of SPAMfighter.
SPAMfighter has removed 12514 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

Do you have a slow PC? Try a Free scan
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen

________________________________

If you no longer wish to receive any of our emails, click on UNSUBSCRIBE.<mailto:unsubscribe@invera.com?subject=***Unsubscribe***> This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.

Si vous ne désirez plus recevoir de nos courriels, veuillez appuyer sur DÉSABONNEMENT.<mailto:unsubscribe@invera.com?subject=***Unsubscribe***> Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen.

-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc


view thread (5+ messages)

Message-ID: <674ea70fda424e9d89c16db36ebca9fd@exch1.invera.com>
Permalink:  ../674ea70fda424e9d89c16db36ebca9fd@exch1.invera.com/
Also on:    postgresql.org/message-id/674ea70fda424e9d89c16db36ebca9fd@exch1.invera.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-odbc@postgresql.org
  Cc: alanolya@invera.com, inoue@tpf.co.jp, adrian.klaver@aklaver.com
  Subject: Re: FW: [GENERAL] Re: [ADMIN] Cannot retrieve images inserted	through VB and odbc, after a table reorganization.
  In-Reply-To: <674ea70fda424e9d89c16db36ebca9fd@exch1.invera.com>
  References: <2f7103a1a1ff4bd28ba0cd9d71f92c6e@exch1.invera.com> <540E41D2.1080103@tpf.co.jp> <a0bdd365f82b435da6febd1ed74645ad@exch1.invera.com> <540F95CC.9090603@tpf.co.jp> <674ea70fda424e9d89c16db36ebca9fd@exch1.invera.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