Re: [GENERAL] Run Vacuum Through JDBC

2010-05-11 Thread Kris Jurka
le. The results of the vacuum are available in Statement.getWarnings(). Kris Jurka -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] [BUGS] helo

2010-02-22 Thread Kris Jurka
once rather than a half dozen times. Kris Jurka -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] [HACKERS] libpq port number handling

2009-09-24 Thread Kris Jurka
or ssh tunnel) that did port forwarding. What PG binds to and what a client connects to may not be the same thing. Kris Jurka -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Compiling Pl/Java

2009-06-22 Thread Kris Jurka
an be run with a 1.6 JVM, just not built with it. Kris Jurka -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Pl/java in 8.4 bet1 sources compilation failed

2009-05-29 Thread Kris Jurka
ResultSet instance we'll return a Jdbc4ResultSet. By using this inheritance we can conditionally compile entire classes which is easy to do with ant rather than trying to implement something like #ifdef which is ugly to do with ant's copy with filtering task. Unfortunately pljava cu

Re: [GENERAL] Pl/java in 8.4 bet1 sources compilation failed

2009-05-29 Thread Kris Jurka
l of the JDBC 4 API and can't be built with JDK 1.6. It will run under a 1.6 JVM as long as you don't use methods that are new in JDBC 4. Kris Jurka -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Pl/java in 8.4 bet1 sources compilation failed

2009-05-29 Thread Kris Jurka
Grzegorz Jaśkiewicz wrote: On Fri, May 29, 2009 at 1:19 AM, Kris Jurka wrote: To build against 8.4 you need pljava from CVS. Also pljava can only be built with the 1.4 or 1.5 JDK, not with the 1.6 version you are using. is it a lot of work to make it 1.6 friendly ? can I help? It

Re: [GENERAL] Pl/java in 8.4 bet1 sources compilation failed

2009-05-29 Thread Kris Jurka
the moment. Kris Jurka -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Pl/java in 8.4 bet1 sources compilation failed

2009-05-28 Thread Kris Jurka
e 1.6 version you are using. Kris Jurka -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] A question about RAISE NOTICE

2009-05-07 Thread Kris Jurka
y, it won't be doing that. The JDBC API has a SQLWarning that we map notice messages to and are understood by client tools. http://java.sun.com/javase/6/docs/api/java/sql/SQLWarning.html Kris Jurka -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make chang

Re: [GENERAL] JDBC and setting statement_timeout

2008-11-03 Thread Kris Jurka
via Statement.execute. Kris Jurka -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] [JDBC] need help of getting PK after insertRow in JDBC

2008-09-25 Thread Kris Jurka
is a very good question and one that does prompt further investigation about what can be done in the JDBC driver to make this better. Kris Jurka -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Memory use in 8.3 plpgsql with heavy use of xpath()

2008-07-02 Thread Kris Jurka
On Wed, 2 Jul 2008, Tom Lane wrote: "Matt Magoffin" <[EMAIL PROTECTED]> writes: Below is a test case that simulates the use of xpath() within a plpgsql function in my application. I'm able to duplicate the memory leak in this function with the current Fedora 8 libxml2 (2.6.32). The leak is

Re: [GENERAL] Closed ResultSet error

2008-04-30 Thread Kris Jurka
ch concurrently open ResultSet you have. Kris Jurka -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] JDBC addBatch more efficient?

2008-04-21 Thread Kris Jurka
essed one at a time? The JDBC driver's batch processing is more efficient than regular execution because it requires fewer network roundtrips so there's less waiting. The JDBC batch is broken into an internal batch size of 256 statement and all of these are sent over to the server

Re: [GENERAL] Which JDBC version to use with PostgreSQL 8.1.11?

2008-03-20 Thread Kris Jurka
rsion, so people can upgrade to get bug fixes without new features/behavior changes. So if you're starting a new application with a 8.1 server, there's no reason not to use the 8.3 driver, but if you're already using the 8.1 driver, upgrading to the 8.3 driver without testing is not

Re: [GENERAL] Understanding ps -ef "command" column

2008-02-22 Thread Kris Jurka
you can see where it got built from. Kris Jurka [1] http://jdbc.postgresql.org/documentation/83/connect.html#connection-parameters ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an

Re: [GENERAL] [Pljava-dev] pljava.dll - bogus error

2008-02-01 Thread Kris Jurka
On Fri, 1 Feb 2008, Guy Rouillier wrote: Kris Jurka wrote: Unfortunately this error message comes from the server which gets it from windows. So pljava is at least two steps removed from it, so we're in no position to improve it. Perhaps the server guys can coax some more details

Re: [GENERAL] [Pljava-dev] pljava.dll - bogus error

2008-02-01 Thread Kris Jurka
s from the server which gets it from windows. So pljava is at least two steps removed from it, so we're in no position to improve it. Perhaps the server guys can coax some more details out of windows. Kris Jurka ---(end of broadcast)--- TIP 6:

Re: [GENERAL] [JDBC] Bug (?) in JDB

2008-01-21 Thread Kris Jurka
ssl, as the original implementation and docs suggested using "?ssl" alone. At various times we've discussed changing this to be more like libpq's try/require options, but that's how it is now. So it's not ideal, but it is working as designed. If you don't

Re: [GENERAL] Prepared Statements

2008-01-12 Thread Kris Jurka
ast forever. What if the table analyzes changes and a better execution plan could be found? Data and stats changes do not trigger a replan. Kris Jurka ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] Prepared Statements

2008-01-09 Thread Kris Jurka
thing about preparing "unnamed" statements. What does it mean? Unnamed statements are what the driver uses before it hits the prepareThreshold limit. Once it has determined the statement will be reused many times it changes to a named statement that has a longer lifespan. Kris J

Re: [GENERAL] RETURNING clause: how to specifiy column indexes?

2007-12-13 Thread Kris Jurka
pg_catalog. Kris Jurka ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] jdbc lob and postgresql

2007-12-13 Thread Kris Jurka
... http://www.postgresql.org/docs/8.2/static/largeobjects.html The JDBC documentation describes some of the tradeoffs between oid and bytea data types, but doesn't describe the getBlob/setBlob API, only a PG specific version. http://jdbc.postgresql.org/documentation/82/binary-data.h

Re: [GENERAL] jdbc lob and postgresql

2007-12-12 Thread Kris Jurka
he pg driver does not implement that yet. Kris Jurka ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] RETURNING clause: how to specifiy column indexes?

2007-12-12 Thread Kris Jurka
uot;INSERT INTO (SELECT myfunc()) VALUES (...)", using myfunc to determine the table name at runtime. The planner needs to know all the tables/columns/other database parts up front before executing anything. Kris Jurka ---(end of broadcast)-

Re: [GENERAL] RETURNING clause: how to specifiy column indexes?

2007-12-11 Thread Kris Jurka
27;ve actually specified the columns in creates the result. Kris Jurka ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [GENERAL] Error while compiling PostgreSQL with Java

2007-11-25 Thread Kris Jurka
driver was made an external project instead of bundled with the server source code. The JDBC driver is available from http://jdbc.postgresql.org/download.html Kris Jurka ---(end of broadcast)--- TIP 4: Have you searched our list archives

Re: [GENERAL] 8.2.3: Server crashes on Windows using Eclipse/Junit

2007-10-15 Thread Kris Jurka
code -1073741502 This is likely a server bug. If you can isolate the failing test and extract a self contained example someone can probably fix it. Kris Jurka ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] [JDBC] creating temporary table PostgreSql 8.1 and iBatis 2.3

2007-06-22 Thread Kris Jurka
that it actually executed would be valuable. Kris Jurka ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] Hex numbers in psql

2007-05-20 Thread Kris Jurka
On Sun, 20 May 2007, madhtr wrote: How do use hex numbers in psql? I.E. instead of: select 16 I want to do select 0x10 See 4.1.2.3: "SELECT x'1FF'::int" http://www.postgresql.org/docs/8.2/static/sql-syntax-lexical.html#SQL-SYNTAX-C

Re: [GENERAL] "Protocol error. Session setup failed" (PostgreSQL 8.3devel/postgresql-8.3dev-600.jdbc3)

2007-04-28 Thread Kris Jurka
he server in CVS. A recent patch broke the ability for clients to set the encoding they wish to converse in. Kris Jurka ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] large table problem

2007-04-21 Thread Kris Jurka
teration.) I'm not sure what documentation you're reading: http://jdbc.postgresql.org/documentation/82/query.html#query-with-cursor and it works as adverstised. Kris Jurka ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] PostgreSQL 8.2.3, Jboss 4.0.3 and postgresql-8.2-504.jdbc4

2007-02-28 Thread Kris Jurka
ce it with, my original driver, postgresql-8.1-405.jdbc3 and all works fine again! I am using Java 1.5.0_06 on Window XP SP2 JDBC4 is only available with the 1.6 JDK. Kris Jurka ---(end of broadcast)--- TIP 5: don't forget to increase your

[GENERAL] Re: [HACKERS] 5 Weeks till feature freeze or (do you know where your patch is?)

2007-02-27 Thread Kris Jurka
. We don't need multiple months of beta so as long as the patch isn't terribly complicated we'll accept it close to the release. Kris Jurka ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] PostgreSQL 8.2.x and JDBC driver

2007-02-26 Thread Kris Jurka
ead or behind of the server release date, but the latest version is always OK to use. Kris Jurka ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] JDBC issue

2006-05-23 Thread Kris Jurka
the pgsql-jdbc list. Kris Jurka ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [GENERAL] How to get recordset with CallableStatemente

2006-05-22 Thread Kris Jurka
#callproc-resultset Kris Jurka ---(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

Re: [GENERAL] parameter passing from java program

2006-05-15 Thread Kris Jurka
()); //return a String cs.execute(); ... public static final String INSERT_CONGRESSO = "{SELECT ins_congressoa(?)}"; You're mixing your calling syntax. You need to write either: conn.prepareCall("{ ? = call ins_congressoa(?)}"); or conn.prepareStatement("SELECT in

Re: [GENERAL] Mac Problem with Tunneling...

2006-05-13 Thread Kris Jurka
On Sat, 13 May 2006, Jerry LeVan wrote: channel 3: open failed: administratively prohibited: open failed This is the standard error you'll see when /etc/ssh/sshd_config (or local equivalent) has AllowTcpForwarding no. Kris Jurka ---(end of broa

Re: [GENERAL] Postgres 8.1 sequences and 'CALL'-syntax

2006-04-27 Thread Kris Jurka
ill support something like the following: Connection conn = ... CallableStatement cs = conn.prepareCall("{? = call nextval('seq_nm')}"); cs.registerOutParameter(1, Types.BIGINT); cs.execute(); long nextval = cs.getLong(1); cs.close(); Kris Jurka ---(end of

Re: [GENERAL] Mailing list setup issue

2006-04-27 Thread Kris Jurka
On Thu, 27 Apr 2006, Chris Velevitch wrote: In addition, it's not the norm. I subscribe to lots of mailing lists and postgresql.org lists are the only ones that I've seem do that. So what's the reasoning behind this choice? http://www.unicom.com/pw/reply-to-harmful.h

Re: [GENERAL] catch SQLException, error code for Foeign key violation,

2006-04-19 Thread Kris Jurka
://www.postgresql.org/docs/8.1/static/libpq-exec.html Kris Jurka ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [GENERAL] Postgresql and Creator2 commitChanges()

2006-04-17 Thread Kris Jurka
olation level in the middle of transaction". If you are going to post to multiple lists, please cross-post instead of sending two separate messages. This is a JDBC question, so I'll follow up there. Kris Jurka ---(end of broadcast)--- T

Re: [GENERAL] catch SQLException, error code for Foeign key violation,

2006-04-17 Thread Kris Jurka
On Mon, 17 Apr 2006, surabhi.ahuja wrote: The question is that is from this SQLException can i detect if it is a foreign key violation, You should check the value of SQLException.getSQLState() against this table: http://www.postgresql.org/docs/8.1/static/errcodes-appendix.html Kris

Re: [GENERAL] PSQL Data Type: text vs. varchar(n)

2006-04-03 Thread Kris Jurka
On Thu, 30 Mar 2006, kurt _ wrote: I am having a problem with Sun Java Studio Creator because the latest version of the JDBC driver returns a field length of -1 for text fields. You should try the latest development driver, 8.2dev-501. Kris Jurka ---(end of

Re: [GENERAL] postgresql documentation

2006-02-27 Thread Kris Jurka
ument much easier to navigate. The 7.4 and 8.0 manuals are missing the bookmarks/TOC, but the 8.1 manual does have them. Kris Jurka ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] Postgres 8.1.2, Java, JDO, and case sensitivity woes

2006-01-27 Thread Kris Jurka
hat's how it's supposed to work. Kris Jurka ---(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

Re: [GENERAL] parameter substitution problem in jdbc driver? (8.1)

2006-01-27 Thread Kris Jurka
x27;s "generate comments in sql" option turned on. Is the problem in the JDBC driver, in Hibernate, or in the JDBC spec? This is the JDBC driver's fault. There are a number of places it does not correctly detect placeholders vs. comments/text, for example dollar quoting is anoth

Re: [GENERAL] [JDBC] SQLData user-defined-types and getObject()

2006-01-08 Thread Kris Jurka
you in the right direction. http://jdbc.postgresql.org/documentation/publicapi/org/postgresql/util/PGobject.html Kris Jurka ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] Specify schema in jdbc connection string?

2005-12-08 Thread Kris Jurka
On Thu, 8 Dec 2005, Dan Armbrust wrote: Is there any way to specify which schema I want to use (or have at the front of the search path) within the jdbc connection string? No. It is still an open todo open. http://jdbc.postgresql.org/todo.html Kris Jurka ---(end

Re: [GENERAL] information_schema._pg_keypositions() in 8.1???

2005-12-01 Thread Kris Jurka
8.0 jdbc driver against an 8.1 server. You need the 8.1 driver. Kris Jurka ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message

Re: [GENERAL] lo_import()

2005-11-15 Thread Kris Jurka
s(lo_import('/path/on/client/machine/ks.jpg'))" -d mydb ERROR: must be superuser to use server-side lo_import() HINT: Anyone can use the client-side lo_import() provided by libpq. It is one of psql's backslash commands. See \? and \lo_import. Kris Jurka -

Re: [GENERAL] PREPARE TRANSACTION and webapps

2005-11-15 Thread Kris Jurka
asking for trouble. Normal XA usage is two serverside resources held open the time it takes to service a single request, not wait for user input. A random webapp leaving suspended or prepared transactions around is going to lock things up in a hurry. Kris Jurka [1] http://archives.postgresql.o

Re: [GENERAL] Possible move away from PG

2005-06-30 Thread Kris Jurka
ad of setof some type. Kris Jurka ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [GENERAL] Is postgresql 8.xx jdbc support SCROLL_SENSITIVE?

2005-05-18 Thread Kris Jurka
On Wed, 18 May 2005, Hengki Suhartoyo wrote: > I have problem with my jdbc program, I need Sensitive scrollable result. > Postgresql only supports insensitive cursors and ResultSets. Your only option is to reissue the query to pick up any changes. Kris

Re: [GENERAL] PostgreSQL XA ?

2005-05-17 Thread Kris Jurka
ot support distributed transactions, so it does not have XA JDBC support. Kris Jurka ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [GENERAL] jdbc3 and ResultSet.getFetchSize()

2005-04-30 Thread Kris Jurka
Older drivers used to report the number of rows fetched in this method, but that was just an implementation artifact at best and a bug at worst. Kris Jurka ---(end of broadcast)--- TIP 2: you can get off all lists at once with the

Re: [GENERAL] lots of puzzling log messages

2005-04-21 Thread Kris Jurka
est driver will do that as well, but in two statements now that transaction end doesn't automatically start a new one immediately. The difference is that the server doesn't log it for the 8.0 driver because it prepares the begin/commit/rollback statements just once and executes the

Re: [GENERAL] current transaction is aborted, commands ignored until

2005-04-18 Thread Kris Jurka
hind the scenes. Then any error would rollback to the savepoint and you could continue on with your transaction. This option would only be used for compatibility which makes it a low priority for people who are mostly PostgreSQL users. Also, it'll certainly decrease performance. Kris

Re: [GENERAL] Loosing connection with the database

2005-04-12 Thread Kris Jurka
On Tue, 12 Apr 2005, [UTF-8] Poul Møller Hansen wrote: > I have rewritten the application so every client thread is opening a new > database connection, and yesterday it happened again. > --- > 2005-04-11 12:27:54 ERROR: invalid string enlargement request size > 1358954492 > 2005-04-11 12:27

Re: [GENERAL] Loosing connection with the database

2005-04-05 Thread Kris Jurka
the db class ? > The JDBC driver should be doing any synchronization necessary for multiple threads. Could you be more clear what you are doing? What driver version? Any chance you've got a reproducible example? Kris Jurka ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [GENERAL] [JDBC] plpgsql function with RETURNS SETOF refcursor AS. How

2005-03-24 Thread Kris Jurka
the test code I've used to verify that this is not a driver problem. Kris Jurka import java.sql.*; public class MultRefCursor { public static void main(String args[]) throws Exception { Class.forName("org.postgresql.Driver"); Connection conn =

Re: [GENERAL] [JDBC] plpgsql function with RETURNS SETOF refcursor AS. How

2005-03-24 Thread Kris Jurka
eally can't copy resources around like that. Consider how you would copy a Connection object. Does that establish a new connection? The underlying tcp/ip connection can't be copied. Kris Jurka ---(end of broadcast)--- TIP 5: Hav

Re: [GENERAL] java.lang.OutOfMemoryError

2005-03-20 Thread Kris Jurka
On Tue, 15 Mar 2005, Suma Bhat wrote: > I'm need to be able to insert a byte[] of size upto 25MB. > With Heap size upto 512m this is failing, with a java.lang.OutOfMemoryError > You need to use an 8.0 JDBC driver and a 7.4 or 8.0 server. Kris Jurka

Re: [GENERAL] SRF, JDBC and result info

2005-03-10 Thread Kris Jurka
NOTICE in your plpgsql function and Statement or ResultSet .getWarnings() on the Java side to retrieve that info. There really isn't any other out of band data path. Kris Jurka ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [GENERAL] JDBC and Portals . Clarification

2005-03-01 Thread Kris Jurka
sumption on the client by not fetching all the rows at once. Also please check the list of restrictions for the JDBC driver to actually use a portal/cursor backed ResultSet: http://jdbc.postgresql.org/documentation/80/query.html#query-with-cursor Kris Jurka ---(e

Re: [GENERAL] J2SE 1.5 Cache Rowset(JSR 114 )

2005-01-08 Thread Kris Jurka
ng. We hope that in a future patch update that the issues will > be resolved. We'll keep you up to date. > Any more details on the problem? A link to Sun's bug database? If you suspect the postgresql jdbc driver I'd be happy to take a look at a testcase. Kris Jurka -

Re: [GENERAL] SSL confirmation - (could not accept SSL connection:

2004-12-06 Thread Kris Jurka
arch with us. The whole JDBC and SSL setup worked fine for me last time I tested it (mid-October) and I have little reason to believe it is broken now. What "bug" are you seeing? Kris Jurka ---(end of broadcast)--- TIP 1: subscribe an

Re: [GENERAL] SSL confirmation - No trusted certificate found

2004-12-06 Thread Kris Jurka
adache of > creating a certificate if I can do it like mentioned above? It leaves you open to man in the middle attacks. You are no longer verifying that the server is who they say they are. Kris Jurka ---(end of broadcast)--- TIP 6: Have you

Re: [GENERAL] SSL confirmation - No trusted certificate found

2004-12-06 Thread Kris Jurka
e java command will help debugging ssl problems. Further the 8.0 JDBC driver can create SSL connnections without doing authentication by adding using an additional url parameter: sslfactory=org.postgresql.ssl.NonValidatingFactory You should try to get it to authenticate correctly, but this is anoth

Re: [GENERAL] [JDBC] Invalid Character Data Problem

2004-11-29 Thread Kris Jurka
below will determine if a particular field has data with the high bit set which is something the database really doesn't know what to do with. SELECT pkcolumn, hashighbit(columna), hashighbit(columnb) FROM mytable; Kris Jurka CREATE OR REPLACE FUNCTION hashighbit(text) RETURNS boolean AS

Re: [GENERAL] updateString error in PostgreSQL7.4 with JDBC

2004-11-10 Thread Kris Jurka
oned before the first row. I don't know what the 7.3 driver was actually doing, but this error is the expected behavior of the driver, unless of course you are doing something else you haven't shown us. Kris Jurka ---(end of broadcast)---

Re: [GENERAL] [JDBC] Using Postgres with Latin1 (ISO8859-1) and Unicode (utf-8)

2004-11-08 Thread Kris Jurka
ing + "'"); > statement.execute(); > This is bad advice for a Java client and does not work. The JDBC driver always expects data in unicode and issues a SET client_encoding of it's own at connection startup to make sure it gets unicode data.

Re: [GENERAL] [JDBC] create view problem

2004-10-17 Thread Kris Jurka
ge field names or specify field names in > view definition because many fields are there in both > tables. how to create this view? > You need to use aliases in your SELECT... SELECT sales.customerkey AS salescustomerkey, customer.customerkey AS customercustomerkey, ... FROM sales, customer W

Re: [GENERAL] [JDBC] Problem with boolean type

2004-10-07 Thread Kris Jurka
On Thu, 7 Oct 2004, Johann Robette wrote: > I use EJB to create a record in a table containing a Boolean field > "answered". > The EJB method expects a Boolean object so I pass new Boolean(false) in > order to create it as false. > > But I get the following error : > java.sql.SQLException: ERR

Re: [GENERAL] Cursors and JDBC

2004-10-04 Thread Kris Jurka
rg/docs/7.4/static/jdbc-query.html#JDBC-QUERY-WITH-CURSOR Kris Jurka ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [GENERAL] PostgreSQL 8.0 Feature List?

2004-08-16 Thread Kris Jurka
ample is pointing to a database query in which case so many other things are going on it's unlikely to make any performance difference. Kris Jurka ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate

Re: [GENERAL] Resultset problem or BUG !

2004-08-12 Thread Kris Jurka
BC? Could you show us some sample code that demonstrates the problem? Kris Jurka ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [GENERAL] pg jdbc driver

2004-08-09 Thread Kris Jurka
quotes perhaps a simple search and replace would be fine. Kris Jurka ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [GENERAL] pg jdbc driver

2004-08-08 Thread Kris Jurka
doesn't necessarily have to be unicode, but often makes the most sense. Kris Jurka ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html

Re: [GENERAL] pg jdbc driver

2004-08-08 Thread Kris Jurka
r converting Java Strings into bytes. This can be accomplished in a number of ways, for example set globally via the file.encoding system property or on per page basis via methods in javax.servlet.ServletResponse such as setCharacterEncoding, setContentType, and setLocale. Kris Jurka

Re: [GENERAL] ./configure --with-java fails

2004-07-06 Thread Kris Jurka
onal java tools, but these were removed before the 7.4 release. The provided jar files are no different than what you would build yourself so it's fine to use them. Kris Jurka ---(end of broadcast)--- TIP 9: the planner will ignore your desire

Re: [GENERAL] LISTEN/NOTIFY with JDBC

2004-05-13 Thread Kris Jurka
are either poorly documented or completely undocumented. Combining my example with a brief look at the source code for PGConnection and PGNotification should hopefully get you going. Kris Jurka ---(end of broadcast)--- TIP 9: the planner will ignore your

Re: [GENERAL] query progress indicator

2004-05-12 Thread Kris Jurka
d on the first row or never which will take wildly different amounts of time. Kris Jurka ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [GENERAL] LISTEN/NOTIFY with JDBC

2004-05-11 Thread Kris Jurka
On Tue, 11 May 2004, Glenn Sullivan wrote: > Hi, > > I have been trying to get LISTEN/NOTIFY working in with JDBC. I cannot seem > to get notified. I looked in the e-mail archive and saw a lot of similiar > questions a couple of years ago. I never could find any answers in the > e-mail nor i

Re: [GENERAL] Using Postgres from WSAD

2004-05-05 Thread Kris Jurka
your runtime environment. Also what is WSAD? Kris Jurka ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Re: [GENERAL] "out of memory" error

2004-05-02 Thread Kris Jurka
o check would be the actual query being run. Is it using a bad plan query plan? What other activity is going on at this time? How much memory do you have? Kris Jurka ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [GENERAL] postgresql idle

2004-04-29 Thread Kris Jurka
On Thu, 29 Apr 2004, Andrew Rawnsley wrote: > > I find that some clients (DBVisualizer for one) do exactly that - > execute the COMMIT;BEGIN sequence, and leaves idle > transactions on a consistent basis. > The 7.5 JDBC driver has been fixed to avoid this probl

Re: [GENERAL] "Idle in Transaction" and hung connections

2004-04-29 Thread Kris Jurka
d like to try it out. Kris Jurka ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [GENERAL] Postgres DB

2004-04-26 Thread Kris Jurka
ify its runtime requirements, which in this case include an updated jar file. If it did not specify this then the bug is with CAR, but not with postgres, client support often lags new backend functionality. Kris Jurka ---(end of broadcast)---

Re: [GENERAL] Index on computed column

2004-04-26 Thread Kris Jurka
ou cannot create functional indexes with a constant in the 7.3 series. This capability was only added in the 7.4 series. You can work around this problem by creating a wrapper function that calls the real function with the constants and creating the index on the wrapper function. Kr

Re: [GENERAL] Transaction Isolation Level

2004-03-24 Thread Kris Jurka
of a thread safety problem in the driver. Are you using multiple threads on the same connection? The only code (other than your own) that could generate that ResultSet would be calling Connection.getTransactionIsolation() do you have any of these calls in your code? What version of the driver a

Re: [GENERAL] 7.4.2 on Solaris 9 - Error

2004-03-24 Thread Kris Jurka
d will go out in the 7.4.3 release. For no your best bet is to checkout the 7.4 branch from cvs, or search the pgsql-committers archives to find the patch you need to apply. Kris Jurka ---(end of broadcast)--- TIP 3: if posting/reading throug

Re: [GENERAL] Character Encoding Confusion

2004-03-08 Thread Kris Jurka
driver needs the data encoded correctly, the ?charSet= option only works on 7.2 and earlier databases because then multibyte was not compiled in by default. This will require a dump and reload. Kris Jurka ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [GENERAL] PostgreSQL 7.4.1 and pgdb.py

2004-02-08 Thread Kris Jurka
n if necessary and register it on a website somewhere. Then when a packager is ready to produce a package he can check the website and immediately find for all packages the correct version of the package to distribute. Lamar, Oliver, interface maintainers, and others would that be useful? Kri

Re: [GENERAL] Improving performance with a Function instead of a

2004-02-05 Thread Kris Jurka
dy > occured? > The JDBC driver will not do any casting for you. The cross type indexing problem is is a backend issue and has been addressed in the cvs version, but this has long been a problem for JDBC users. Kris Jurka ---(end of broadcast)--

Re: [GENERAL] Unicode vs SQL_ASCII DBs

2004-02-02 Thread Kris Jurka
On Mon, 2 Feb 2004, John Sidney-Woollett wrote: > Kris, thanks for you feedback. Can you give me any further info on the > questions below? > > Kris Jurka said: > >> 3) If I want accented characters to sort correctly, must I select > >> UNICODE > >> (or

Re: [GENERAL] How to kick out automatically stuck in queries

2004-02-02 Thread Kris Jurka
ar. > Time to time I face such kind of problems which are solved automatically > after some hours/days. > > Is there any options in config files or other settings to shorten this time? See the statement_timeout config parameter. http://www.postgresql.org/docs/7.3/static

Re: [GENERAL] Unicode vs SQL_ASCII DBs

2004-01-31 Thread Kris Jurka
coding conversion on the binary data: http://archives.postgresql.org/pgsql-jdbc/2004-01/msg00045.php Kris Jurka ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

  1   2   >