X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 228B79FA60C for ; Thu, 22 Jun 2006 06:52:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 51125-01 for ; Thu, 22 Jun 2006 06:52:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from venus.amiindia.co.in (unknown [203.199.198.234]) by postgresql.org (Postfix) with ESMTP id C0E3B9F9ED6 for ; Thu, 22 Jun 2006 06:52:00 -0300 (ADT) Received: from venus.amiindia.co.in (localhost.localdomain [127.0.0.1]) by venus.amiindia.co.in (8.12.11/8.12.11) with ESMTP id k5M9fKTE006719; Thu, 22 Jun 2006 15:11:26 +0530 Received: from sandhyar (unknown [10.0.0.205])by venus.amiindia.co.in (Postfix) with ESMTP id D07F7332690; Thu, 22 Jun 2006 15:11:20 +0530 (IST) Message-ID: <014c01c695e2$62c0d530$cd00000a@sandhyar> From: "sandhya" To: "Marco Bizzarri" Cc: "Postgres" References: <00d601c695cf$d0edc490$cd00000a@sandhyar> <3f0d61c40606220113i425bde7brd60ec33a87f592f9@mail.gmail.com> Subject: Re: reg:lo_write Date: Thu, 22 Jun 2006 15:28:16 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-imss-version: 2.040 X-imss-result: Passed X-imss-scanInfo: M:P L:E SM:0 X-imss-tmaseResult: TT:0 TS:0.0000 TC:00 TRN:0 TV:3.52.1006(14518.003) X-imss-scores: Clean:68.31562 C:2 M:4 S:5 R:5 X-imss-settings: Baseline:5 C:3 M:3 S:4 R:3 (0.2500 0.2500) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/189 X-Sequence-Number: 22151 Hi Macro.. If i assign my lobj_fd(say LO file descriptor) to one Global int. But will my lo_write work if i pass that global int inplace of lobjfd.... One more thing...It should be in "begin" and "end" sessions right! How can i open a LO in many places and write the content into it.....Will it get appended to the previous content? You said two different file descriptors i will be having?How to overcome it?Any suggestion pls Anybody please give me suggestion how can i over come this problem?So that i can proceed further ----- Original Message ----- From: "Marco Bizzarri" To: "sandhya" Cc: "Postgres" Sent: Thursday, June 22, 2006 1:43 PM Subject: Re: [ADMIN] reg:lo_write > I'm not sure, but I think you will have problems. As far as I can > understand, largeobject semantics is similar to files. Therefore, you > open an existing LO, and you obtain a file descriptor, which will > point (I think) at the start of the LO. If you write something, the > file descriptor will be moved accordingly. If you open again (i.e. you > issue another lo_open), you will have another file descriptor for the > same LO, which will be at the start of the LO, and you will overwrite > your previous LO. > > Please take care with these advices as I'm not a PostgreSQL expert, > just reporting some experience. > > Regards > Marco > > On 6/22/06, sandhya wrote: > > > > > > Hi, > > > > If i use lo_write in different function to write data into an object,Will > > there be any problem? > > like, > > I open my object and add data into it and in another function if i again > > open the same object and add data....It will append to the previous content > > right!Am i wrong? > > > > If i wants to append the content to the present object is there anything i > > need to do? > > Please help me in doing this................ > > I am unable to see the image which i am exporting... > > Thank you, > > Sandhya > > > > > -- > Marco Bizzarri > http://notenotturne.blogspot.com/ > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match >