AccessShareLock question - Mailing list pgsql-general

From Clayton Graf
Subject AccessShareLock question
Date
Msg-id 7b2fe65d0912190604v671c2abjcf0f203ff028d5ac@mail.gmail.com
Whole thread Raw
Responses Re: AccessShareLock question  (Jaime Casanova <jcasanov@systemguards.com.ec>)
List pgsql-general
I get an AccessShareLock in a simple select command and I am not using the FOR SHARE clause. 
The select is just "select * from controle". The connection is JDBC and the driver is postgresql-8.4-701.jar.
What am I doing wrong?

This is the code:

            Class.forName(jdbc).newInstance();
            Connection connection = DriverManager.getConnection(url, login, password);
            connection.setCatalog(database);
            connection.setAutoCommit(false);
            Statement st = connection.createStatement();
            ResultSet rs = st.executeQuery("select * from controle");
            while (rs.next()) {
                System.out.println(rs.getString(1));
            }
            rs.close();
            st.close();
 
Thanks,
 
Clayton

pgsql-general by date:

Previous
From: Filip Rembiałkowski
Date:
Subject: Re: defining yuor own commands in PG ?
Next
From: Chris Ernst
Date:
Subject: Re: Extracting SQL from logs in a usable format