Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XPdge-0000vo-0H for pgsql-general@arkaria.postgresql.org; Thu, 04 Sep 2014 20:31:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XPdgd-0007Tq-Gh for pgsql-general@arkaria.postgresql.org; Thu, 04 Sep 2014 20:31:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XPdgc-0007Ti-DL for pgsql-general@postgresql.org; Thu, 04 Sep 2014 20:31:18 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XPdgX-0004WM-FT for pgsql-general@postgresql.org; Thu, 04 Sep 2014 20:31:17 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by gateway2.nyi.internal (Postfix) with ESMTP id BE150207F3 for ; Thu, 4 Sep 2014 16:31:10 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Thu, 04 Sep 2014 16:31:10 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=arHnX/rmkTb1u9KH8BdeMG0Ft9M=; b=TCzD/Q04GicXC5jfYIRHq1pYnJjb e4uZ81gzrG4i50AAo0dyV6jA+83PJ3BRNWoOPPxPvsisHjCyuoOpgu8SfcO/k9Ee gYDBVfBoEXIE+HXiQQoDKZ8q76elloWZkIUKrFjUnJX2FSGgjlQL1g5y36pujb/L zca054vyVhS11NQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=arHnX/rmkTb1u9KH8BdeMG 0Ft9M=; b=XY7yiqWM/F9zfFDjIqaKdU9yrUcOXtgg2Fto6jbUNtFbkKOH7FcNLi cIUq1V+XYkAkcbcFqR9dxPvau0qmFtEwJ8Smiavc1yrxV81SNpwUftsOFBRUEZKv HWTPxq3Z/QFnlPHhWA1IdNZzSxNgozwVrZFEAxip21MS4RcNS35bQ= X-Sasl-enc: bTsbphDX8VENddvvI9uCKWQeqr14Z6s2kOlRYdiEJXYu 1409862670 Received: from killi.site (unknown [24.17.179.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 4F8A7C0091B; Thu, 4 Sep 2014 16:31:10 -0400 (EDT) Message-ID: <5408CC0D.9060807@aklaver.com> Date: Thu, 04 Sep 2014 13:31:09 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: David G Johnston , pgsql-general@postgresql.org Subject: Re: Re: [ADMIN] Cannot retrieve images inserted through VB and odbc, after a table reorganization. References: <6909b219ecae4d41b431efdaf6c953a3@Exch2.invera.com> <5407679B.2030906@aklaver.com> <54086B77.9090102@aklaver.com> <1409840147898-5817761.post@n5.nabble.com> In-Reply-To: <1409840147898-5817761.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 09/04/2014 07:15 AM, David G Johnston wrote: > Adrian Klaver-4 wrote >> On 09/04/2014 05:56 AM, Alanoly Andrews wrote: >>> Hi Adrian, >>> >>> Thanks for that explanation of how the "relfilenode" changes after a >>> table reorganization. It is not surprising that this happens because the >>> table rows are being physically moved from one location to another. But >>> such changes at the backend should be transparent to the end user. The VB >>> code at the client side runs a simple sql like "select image from >>> image_table where image_key=somevalue". There is no reference to >>> postgres-specific internal variables like "oid" and "relfilenode". I do >>> not know the inner workings of the postgres odbc driver; but I would be >>> surprised if it works at the granularity of "oid" and "relfilenode" and >>> that it would store the actual physical values of relfilenode (which >>> would keep changing after every table reload, reorg etc.). >> >> In addition to what David mentioned, some more detail on what you are >> calling a 'large object'. In Postgres there is not really a 'large >> object' type(though I am guilty of saying there is), instead there is a >> way of working with large objects outside of the bytea type. Now in the >> ODBC FAQ there is a recipe for creating a 'lo' type: >> >> http://psqlodbc.projects.pgfoundry.org/faq.html#4.4 >> >> Is this what you are using? >> >> If not how are you working with the large objects? >> >> Also given that you are working with the Postgres ODBC driver, you might >> want to break the cross post rule and ask this question on the psql-odbc >> list: >> >> http://www.postgresql.org/list/pgsql-odbc/ >> >> In any case your ODBC settings would be helpful. > > I suspect the OP is referring to the contrib module/extension: > > http://www.postgresql.org/docs/9.1/interactive/lo.html Aaah, did not know that existed, thanks. > > David J. > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general