Return-Path: owner-postman Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id LAA21872 for postgres-redist; Mon, 12 Sep 1994 11:11:27 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199409121811.LAA21872@nobozo.CS.Berkeley.EDU> X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from oahu.cs.ucla.edu (Oahu.CS.UCLA.EDU [131.179.128.12]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id LAA21862 for ; Mon, 12 Sep 1994 11:11:24 -0700 Received: by oahu.cs.ucla.edu (Sendmail 4.1/3.26) id AA05843; Mon, 12 Sep 94 11:11:22 PDT From: raj@CS.UCLA.EDU (Raj Vadakkencherry) Message-Id: <9409121811.AA05843@oahu.cs.ucla.edu> Subject: Re: LIBPQ large object interface To: postgres@postgres.Berkeley.EDU Date: Mon, 12 Sep 1994 11:11:21 -0700 (PDT) X-Mailer: ELM [version 2.4 PL21] Content-Type: text Content-Length: 1460 Resent-To: postgres-redist@postgres.Berkeley.EDU Resent-Date: Mon, 12 Sep 94 11:11:26 -0700 Resent-XMts: smtp Hi, As a related question (I'm using LIBPQ interface to large objects), how can I delete a large object file that I create using p_creat and p_write calls ? You mention that the file is created with the name LOxxxxx and is located in the database directory. But this directory is off limits for regular users (ie., no read permission) and so the Large object file cannot be deleted using regular unix commands. Is there any way I can delete the file from within LIBPQ or otherwise ? Raj. > raj@CS.UCLA.EDU (Raj Vadakkencherry) writes: > > When I'm done writing, I issue a p_close command and exit successfully, > > but the file is not visible in the Unix file system. > > the file will not be visible with the same name you give it. the > /-delimited path is only useful within the virtual inversion file > system. instead, it will have the name LOxxxxxx where xxxxxx is the > object id of the tuple in pg_naming that corresponds to the file name. > this file is located in the database directory. > > if you want to use files that are visible within the regular unix name > space, you must use the external large object interface. this is > turned off in the distribution for security reasons; see the LARGE > OBJECT ref manual page. > -- > Paul M. Aoki | University of California at Berkeley > aoki@CS.Berkeley.EDU | Dept. of EECS, Computer Science Division (#1776) > | Berkeley, CA 94720-1776 > ============================================================================== To add/remove yourself to/from the POSTGRES mailing list: send mail with the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU" If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and a human will deal with it. DO NOT post to the "postgres" mailing list. ==============================================================================