agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Eugene Yin <eugeneymail@ymail.com>
To: Andreas Joseph Krogh <andreas@visena.com>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: BLOBs
Date: Tue, 12 Jan 2016 01:32:46 +0000 (UTC)
Message-ID: <653214003.3602816.1452562366970.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: <VisenaEmail.16.33738fffabc53422.15231ca9847@tc7-visena>
References: <VisenaEmail.16.33738fffabc53422.15231ca9847@tc7-visena>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

I did some search on the OID data type.  Here is something I found regarding to the deletion of the OID data.
QUOTE:
"The Large Object method for storing binary data is better suited to storing very large values, but it has its own limitations. Specifically deleting a row that contains a Large Object reference does not delete the Large Object. 
Deleting the Large Object is a separate operation that needs to be performed. 
Large Objects also have some security issues since anyone connected to the database can view and/or modify any Large Object, even if they don't have permissions to view/update the row containing the Large Object reference."
From: https://jdbc.postgresql.org/documentation/84/binary-data.html


So I have two questions:
1)  If it is true that "Deleting the Large Object is a separate operation that needs to be performed.", after the deletion, what operation I need to perform, in order to delete the OID data in the table?  Possiblely put into an after trigger
2) "Large Objects also have some security issues since anyone connected to the database can view and/or modify any Large Object".  Will this pose a real risk to the security?  or just a forethought?



 

    On Monday, January 11, 2016 9:49 AM, Andreas Joseph Krogh <andreas@visena.com> wrote:
 

 På mandag 11. januar 2016 kl. 16:37:50, skrev Eugene Yin <eugeneymail@ymail.com>:
 QUOTE: Maven-config:<properties>
    <version.pgjdbc-ng>0.6</version.pgjdbc-ng>
</properties>
<dependency>
    <groupId>com.impossibl.pgjdbc-ng</groupId>
    <artifactId>pgjdbc-ng</artifactId>
    <version>${version.pgjdbc-ng}</version>
    <classifier>complete</classifier>
</dependency>
  I do not use Maven.   I use web.xml and standalone-ha.xml of JBoss AS 7.1.1 to configure the JDBC, such as  [web.xml] <resource-ref>     <description>Resource reference to my database</description>    <res-ref-name>jdbc/web</res-ref-name>    <res-type>javax.sql.DataSource</res-type>    <res-auth>Application</res-auth>     <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref>     [standalone-ha.xml]  <datasource jta="false" jndi-name="java:/jdbc/web" pool-name="OracleDS" enabled="true" use-ccm="false">                    <connection-url>jdbc:oracle:thin:@192.168.1.20:1521:deepy</connection-url>                    <driver-class>oracle.jdbc.OracleDriver</driver-class>                    <driver>OracleJDBCDriver</driver>                    <security>                        <security-domain>mysecuritydomain</security-domain>                    </security>                    <validation>                        <validate-on-match>false</validate-on-match>                        <background-validation>false</background-validation>                    </validation>                    <statement>                        <share-prepared-statements>false</share-prepared-statements>                    </statement>                </datasource>   What corresponding changes I need to make to use the Postgres?
 Using Maven is only for getting the right deps in place for your app, it has nothing to do with configuration. The URL should be on the form:jdbc:pgsql://<host>:<port>/<database_name>?blob.type=oidOther parameters are available here: http://impossibl.github.io/pgjdbc-ng/ --Andreas Joseph KroghCTO / Partner - Visena ASMobile: +47 909 56 963andreas@visena.comwww.visena.com 

  =

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

view thread (20+ messages)  latest in thread

Message-ID: <653214003.3602816.1452562366970.JavaMail.yahoo@mail.yahoo.com>
Permalink:  ../653214003.3602816.1452562366970.JavaMail.yahoo@mail.yahoo.com/
Also on:    postgresql.org/message-id/653214003.3602816.1452562366970.JavaMail.yahoo@mail.yahoo.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: eugeneymail@ymail.com, andreas@visena.com
  Subject: Re: BLOBs
  In-Reply-To: <653214003.3602816.1452562366970.JavaMail.yahoo@mail.yahoo.com>

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

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