[HACKERS] CVS with tag REL7_4_STABLE don't compile

2003-11-11 Thread snpe
Hello, I have a problem with compile PostgreSQL from cvs with tag REL7_4_STABLE Error is 'ECPG_ARRAY_NONE is not declared' (in execute.c) HEAD (7.5.devel) compile fine Please help Regards Haris Peco ---(end of broadcast)--- TIP 7: don't forget

Re: [HACKERS] [JDBC] Out of memory error on huge resultset

2002-10-11 Thread snpe
there is a mechanism to get to the end move 0 in 'cursor', which currently is being considered a bug. Dave On Fri, 2002-10-11 at 11:44, Doug Fields wrote: At 08:27 AM 10/11/2002, snpe wrote: Barry, Is it true ? I create table with one column varchar(500) and enter 1 milion rows

Re: [HACKERS] [JDBC] Out of memory error on huge resultset

2002-10-16 Thread snpe
This code work for me : Connection db = DriverManager.getConnection(url,user,passwd); PreparedStatement st = db.prepareStatement(begin;declare c1 cursor for select * from a); st.execute(); st = db.prepareStatement(fetch 100 in c1); ResultSet rs =

Re: [HACKERS] [Fwd: Re: [JDBC] Patch for handling autocommit=false in postgresql.conf]

2002-10-11 Thread snpe
with setting autocommit in clients? thanks, --Barry Original Message Subject: Re: [JDBC] Patch for handling autocommit=false in postgresql.conf Date: Tue, 17 Sep 2002 10:26:14 -0400 From: Tom Lane [EMAIL PROTECTED] To: snpe [EMAIL PROTECTED] CC: pgsql-jdbc [EMAIL

Re: [HACKERS] [JDBC] Out of memory error on huge resultset

2002-10-11 Thread snpe
Barry, Is it true ? I create table with one column varchar(500) and enter 1 milion rows with length 10-20 character.JDBC query 'select * from a' get error 'out of memory', but psql not. I insert 8 milion rows and psql work fine yet (slow, but work) In C library is 'execute query' without

Re: [HACKERS] [JDBC] Out of memory error on huge resultset

2002-10-11 Thread snpe
at 12:48, snpe wrote: Hello, Does it mean that psql uses cursors ? regards Haris Peco On Friday 11 October 2002 05:58 pm, Dave Cramer wrote: This really is an artifact of the way that postgres gives us the data. When you query the backend you get *all* of the results

Re: [HACKERS] 7.3b3 build --with-perl fails on RH 8.0

2002-10-28 Thread snpe
Change directory in src/pl/plperl and execute gcc command with option -D_GNU_SOURCE (2 files) and then continue make form base directory You must add /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so in /etc/ld/so/conf or in LD_LIBRARY_PATH regards Haris Peco On Monday 28 October

Re: [HACKERS] protocol change in 7.4

2002-11-07 Thread snpe
b) Send a decoded version of atttypmod - specifically, decode the precision and scale for numeric types. I want decode type,length,precision and scale regards Haris Peco ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] protocol change in 7.4

2002-11-07 Thread snpe
On Thursday 07 November 2002 09:50 pm, korry wrote: b) Send a decoded version of atttypmod - specifically, decode the precision and scale for numeric types. I want decode type,length,precision and scale Type is returned by PQftype(), length is returned by PQfsize(). Precision and

Re: [HACKERS] protocol change in 7.4

2002-11-07 Thread snpe
Is exists patch for 7.4devel ? regards Haris Peco On Tuesday 05 November 2002 01:14 am, Satoshi Nagayasu wrote: Hi all, Mike Mascari [EMAIL PROTECTED] wrote: Is there any thought about changing the protocol to support two-phase commit? Not that 2PC and distributed transactions would be

[HACKERS] PostgreSQL JDBC and sub-select

2002-11-09 Thread snpe
Hello, I work with JDeveloper and PostgreSQL JDBC and I have one problem. I get error : sub-SELECT in FORM must have an alias I can't change SQL command, but it is internal JDeveloper command Is it SQL standard (must have alias) or PostgreSQL specific ? Regards Haris Peco

Re: [HACKERS] PostgreSQL JDBC and sub-select

2002-11-10 Thread snpe
On Sunday 10 November 2002 05:27 am, Tom Lane wrote: snpe [EMAIL PROTECTED] writes: I work with JDeveloper and PostgreSQL JDBC and I have one problem. I get error : sub-SELECT in FORM must have an alias Is it SQL standard (must have alias) or PostgreSQL specific ? The SQL

Re: [HACKERS] PostgreSQL JDBC and sub-select

2002-11-10 Thread snpe
On Sunday 10 November 2002 08:51 am, Hannu Krosing wrote: snpe kirjutas L, 09.11.2002 kell 22:51: Hello, I work with JDeveloper and PostgreSQL JDBC and I have one problem. I get error : sub-SELECT in FORM must have an alias I can't change SQL command, but it is internal JDeveloper

[HACKERS] SQL syntax (column alias)

2002-11-10 Thread snpe
Hello, Query : select id i from tab don't work in PostgreSQL I know that select id as i from tab work, but I think that AS in 'as cluse' is optional Please comment. regards Haris Peco ---(end of

Re: [JDBC] [HACKERS] PostgreSQL JDBC and sub-select

2002-11-14 Thread snpe
On Sunday 10 November 2002 08:51 am, Hannu Krosing wrote: snpe kirjutas L, 09.11.2002 kell 22:51: Hello, I work with JDeveloper and PostgreSQL JDBC and I have one problem. I get error : sub-SELECT in FORM must have an alias I can't change SQL command, but it is internal JDeveloper

[HACKERS] create or replace view

2002-11-14 Thread snpe
Hello, When I change view and change number of column PostgreSQL return error : 'cannot change number of column in view' Is it too hard set this command if view exits drop view and then change view It is like with return type in function Now 'or replace' don't help too much regards

Re: [HACKERS] create or replace view

2002-11-14 Thread snpe
On Thursday 14 November 2002 02:41 pm, Bruno Wolff III wrote: On Thu, Nov 14, 2002 at 13:41:18 +, snpe [EMAIL PROTECTED] wrote: Hello, When I change view and change number of column PostgreSQL return error : 'cannot change number of column in view' Is it too hard set

Re: [HACKERS] create or replace view

2002-11-14 Thread snpe
On Thursday 14 November 2002 04:38 pm, Rod Taylor wrote: On Thu, 2002-11-14 at 11:17, snpe wrote: On Thursday 14 November 2002 02:41 pm, Bruno Wolff III wrote: On Thu, Nov 14, 2002 at 13:41:18 +, snpe [EMAIL PROTECTED] wrote: Hello, When I change view and change number

Re: [HACKERS] create or replace view

2002-11-14 Thread snpe
On Thursday 14 November 2002 05:01 pm, Bruno Wolff III wrote: On Thu, Nov 14, 2002 at 16:49:42 +, snpe [EMAIL PROTECTED] wrote: I want that 'create or replace view' work drop-create if view exists else only create Why do you want this? Why 'create or replace

Re: [HACKERS] create or replace view

2002-11-14 Thread snpe
On Thursday 14 November 2002 05:22 pm, Bruno Wolff III wrote: On Thu, Nov 14, 2002 at 17:00:30 +, snpe [EMAIL PROTECTED] wrote: On Thursday 14 November 2002 05:01 pm, Bruno Wolff III wrote: On Thu, Nov 14, 2002 at 16:49:42 +, snpe [EMAIL PROTECTED] wrote: I want

Re: [HACKERS] create or replace view

2002-11-14 Thread snpe
On Thursday 14 November 2002 05:45 pm, Tom Lane wrote: snpe [EMAIL PROTECTED] writes: On Thursday 14 November 2002 05:22 pm, Bruno Wolff III wrote: Are you trying to save typing a few characters or what? Yes, it is 'create or replace view', not ? The statement was not invented to save

Re: [HACKERS] create or replace view

2002-11-14 Thread snpe
On Thursday 14 November 2002 08:01 pm, Stephan Szabo wrote: On Thu, 14 Nov 2002, Scott Shattuck wrote: It might just be me but it seems that this discussion is missing the point if we believe this request is about saving some characters. I don't think it is. I think it's about being able to

Re: [HACKERS] create or replace view

2002-11-14 Thread snpe
On Thursday 14 November 2002 10:36 pm, Stephan Szabo wrote: On Thu, 14 Nov 2002, snpe wrote: Problem is when I want change view (or functions) with a lot of dependecies I must drop and recreate all dependent views (or functions) - I want add only one column in view I don't know

Re: [HACKERS] [GENERAL] DECLARE CURSOR

2002-11-18 Thread snpe
Hello, is it planed cursor out of a transaction in 7.4 ? Thanks Haris Peco On Monday 18 November 2002 12:30 am, Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: Let's just fix it and roll an RC2 with the fix. If not, we can just fix it in 7.3.1 but I see little problem in rolling an

Re: [HACKERS] Why an array in pg_group?

2002-11-26 Thread snpe
On Tuesday 26 November 2002 09:05 pm, Hannu Krosing wrote: Reinoud van Leeuwen kirjutas K, 20.11.2002 kell 17:03: Hi, Is there any reason why the grolist field in the table pg_group is implemented as an array and not as a separate table? most likely for performance reasons. According

Re: [HACKERS] 7.4 Wishlist

2002-11-30 Thread snpe
On Friday 29 November 2002 06:51 pm, Christopher Kings-Lynne wrote: Hi guys, Just out of interest, if someone was going to pay you to hack on Postgres for 6 months, what would you like to code for 7.4? My ones are: * Compliant ADD COLUMN * Integrated full text indexes * pg_dump

Re: [HACKERS] 7.4 To Do

2002-12-01 Thread snpe
On Sunday 01 December 2002 05:03, Tom Lane wrote: Paul Ramsey [EMAIL PROTECTED] writes: Oracle has finally surpassed PostgreSQL in some elements of object-relational technology. Among the things you can do are: - Address components of objects using dot-notation. (select employee.salary

Re: [HACKERS] Big 7.4 items

2002-12-13 Thread snpe
On Friday 13 December 2002 17:51, Bruce Momjian wrote: Shridhar Daithankar wrote: And where are nested transactions? I didn't mention nested transactions because it didn't seem to be a _big_ item like the others. This is big item regards Haris Peco ---(end of

Re: [GENERAL] [HACKERS] Cast your vote ...

2003-01-02 Thread snpe
Postgresql is first, now (51%, mysql 35%) regards Haris Peco On Thursday 02 January 2003 08:53, Daniel Kalchev wrote: Registration is easy, and pretty much anonymous... worth to promote our beloved database. :) Happy New Year, Daniel Marc G. Fournier said: Just got this in my

Re: [HACKERS] cursors outside transactions

2003-03-19 Thread snpe
On Wednesday 19 March 2003 04:33 am, you wrote: Dave Cramer [EMAIL PROTECTED] writes: On Tue, 2003-03-18 at 19:00, Hiroshi Inoue wrote: ODBC(maybe JDBC also) has cross-transaction result sets (rather than cursors) since long by simply holding all results for a query at client side.

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-06 Thread snpe
. Hackers, How should client interfaces handle this new autocommit feature? Is it best to just issue a set at the beginning of the connection to ensure that it is always on? thanks, --Barry snpe wrote: Hi Dave, That is same.Program work with and without quote but row don't deleted

Re: [JDBC] [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-07 Thread snpe
On Saturday 07 September 2002 02:55 am, Bruce Momjian wrote: Barry Lind wrote: Haris, You can't use jdbc (and probably most other postgres clients) with autocommit in postgresql.conf turned off. Hackers, How should client interfaces handle this new autocommit feature? Is it

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-09 Thread snpe
release. We can document it as being work in progress, use at your own risk. I'm use 'autocommit=false' and have problem with psql When any commnad is lost, then next commnad get error for transactions (simple select command).BTW snpe select * from org_ba; ERROR: relation org_ba does not exists

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-09 Thread snpe
On Monday 09 September 2002 11:03 pm, Rod Taylor wrote: On Mon, 2002-09-09 at 17:04, snpe wrote: I'm use 'autocommit=false' and have problem with psql When any commnad is lost, then next commnad get error for transactions (simple select command).BTW snpe select * from org_ba; ERROR

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-09 Thread snpe
On Tuesday 10 September 2002 03:05 am, Stephan Szabo wrote: On Tue, 10 Sep 2002, snpe wrote: On Monday 09 September 2002 11:03 pm, Rod Taylor wrote: On Mon, 2002-09-09 at 17:04, snpe wrote: I'm use 'autocommit=false' and have problem with psql When any commnad is lost, then next

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-10 Thread snpe
On Tuesday 10 September 2002 04:16 am, Stephan Szabo wrote: On Tue, 10 Sep 2002, snpe wrote: On Tuesday 10 September 2002 03:05 am, Stephan Szabo wrote: On Tue, 10 Sep 2002, snpe wrote: On Monday 09 September 2002 11:03 pm, Rod Taylor wrote: On Mon, 2002-09-09 at 17:04, snpe wrote

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-10 Thread snpe
On Tuesday 10 September 2002 07:46 pm, scott.marlowe wrote: On Tue, 10 Sep 2002, Stephan Szabo wrote: It starts a transaction, failes the first command and goes into the error has occurred in this transaction state. Seems like reasonable behavior. Select command

Re: [JDBC] [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-10 Thread snpe
On Tuesday 10 September 2002 09:55 pm, Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: That seems messy. What you are saying is that if autocommit is off, then in: SET x=1; UPDATE ... SET y=2; ROLLBACK; that the x=1 doesn't get rolled back bu the y=2

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-10 Thread snpe
On Wednesday 11 September 2002 01:25 am, Stephan Szabo wrote: On Wed, 11 Sep 2002, snpe wrote: On Tuesday 10 September 2002 11:50 pm, Stephan Szabo wrote: On Tue, 10 Sep 2002, snpe wrote: On Tuesday 10 September 2002 07:46 pm, scott.marlowe wrote: What if it's a select for update

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-10 Thread snpe
On Wednesday 11 September 2002 02:09 am, Stephan Szabo wrote: On Wed, 11 Sep 2002, snpe wrote: yes, we're going around in circles. Ok.I agreed (I think because Oracle do different) Transaction start I type invalid command I correct command I get error Why.If is it transactin

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-11 Thread snpe
On Wednesday 11 September 2002 04:58 am, Stephan Szabo wrote: On Wed, 11 Sep 2002, snpe wrote: On Wednesday 11 September 2002 02:09 am, Stephan Szabo wrote: On Wed, 11 Sep 2002, snpe wrote: yes, we're going around in circles. Ok.I agreed (I think because Oracle do different

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-11 Thread snpe
On Wednesday 11 September 2002 03:14 am, Stephan Szabo wrote: On Wed, 11 Sep 2002, snpe wrote: On Wednesday 11 September 2002 02:09 am, Stephan Szabo wrote: On Wed, 11 Sep 2002, snpe wrote: yes, we're going around in circles. Ok.I agreed (I think because Oracle do different

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-11 Thread snpe
On Wednesday 11 September 2002 02:38 pm, Rod Taylor wrote: Why rollback.This is error (typing error).Nothing happen. I think that we need clear set : what is start transaction ? I think that transaction start with change data in database (what don't change data this start not

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-11 Thread snpe
On Wednesday 11 September 2002 02:55 pm, Stephan Szabo wrote: On Wed, 11 Sep 2002, snpe wrote: On Wednesday 11 September 2002 03:14 am, Stephan Szabo wrote: On Wed, 11 Sep 2002, snpe wrote: On Wednesday 11 September 2002 02:09 am, Stephan Szabo wrote: On Wed, 11 Sep 2002, snpe

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-11 Thread snpe
On Wednesday 11 September 2002 06:11 pm, Stephan Szabo wrote: On Wed, 11 Sep 2002, snpe wrote: On Wednesday 11 September 2002 02:55 pm, Stephan Szabo wrote: On Wed, 11 Sep 2002, snpe wrote: If decision (transaction or not) is after parser (before execute) this isn't problem. I

Re: [HACKERS] updateable cursors visibility

2003-03-25 Thread snpe
Hello Neil, I try example for Oracle jdbc 1.4 driver This is sample and results. I hope that is helps. If you want yet another example, please tell me. regards Haris Peco /** * A simple sample to check the availability of scrollable result sets. * * Please use jdk1.2 or later version

[HACKERS] CVS - /project//cvroot/pgsql-server/ src/bin/scripts/po/#cvs.lock : permission denied

2003-07-23 Thread snpe
hello, This is in current cvs regards ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]