Re: [GENERAL] postgreSQL query via JDBC in different OS taking different running time?

2013-10-10 Thread Merlin Moncure
On Mon, Oct 7, 2013 at 10:35 PM, Kevin Grittner wrote: > Aftab Ahmed Chandio wrote: > >> My query processes from JDBC (Java Program) to PostgreSQL. I use >> system time by invoking java function, I collect one time unit >> before the query statement perform and second after the execution >> of qu

Re: [GENERAL] postgreSQL query via JDBC in different OS taking different running time?

2013-10-08 Thread Luca Ferrari
On Tue, Oct 8, 2013 at 3:48 AM, Aftab Ahmed Chandio wrote: > What do u suggest me, where I need to make performance tuning? w hich > configuration setting must need to modify in the linux? Well, others have already pointed out that you should first measure your query on the server. I would point

Re: [GENERAL] postgreSQL query via JDBC in different OS taking different running time?

2013-10-07 Thread John R Pierce
On 10/7/2013 6:48 PM, Aftab Ahmed Chandio wrote: I found 85 ms time unit in DOS (win7) (laptop 4cores). both Java and PostgreSQL installed and invoked on the same machine, respectively. On the other hand, I use same process (separate installation) on linux on 8 cores physical machine with 2times

Re: [GENERAL] postgreSQL query via JDBC in different OS taking different running time?

2013-10-07 Thread Kevin Grittner
Aftab Ahmed Chandio wrote: > My query processes from JDBC (Java Program) to PostgreSQL. I use > system time by invoking java function, I collect one time unit > before the query statement perform and second after the execution > of query statement. > I found 85 ms time unit in DOS (win7) (laptop

[GENERAL] postgreSQL query via JDBC in different OS taking different running time?

2013-10-07 Thread Aftab Ahmed Chandio
Hi, I want to know the reason behind the case: My query processes from JDBC (Java Program) to PostgreSQL. I use system time by invoking java function, I collect one time unit before the query statement perform and second after the execution of query statement. I found 85 ms time unit in DOS (win

Re: [GENERAL] postgresql query

2013-06-24 Thread Jashaswee
i have tried in that way but its showing that the debit column doesn't exist -- View this message in context: http://postgresql.1045698.n5.nabble.com/postgresql-query-tp5759846p5760593.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-general maili

Re: [GENERAL] postgresql query

2013-06-24 Thread Jashaswee
i am using postgresql 8.4 version..but this doesn't support the function -- View this message in context: http://postgresql.1045698.n5.nabble.com/postgresql-query-tp5759846p5760589.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-general mailing l

Re: [GENERAL] postgresql query

2013-06-24 Thread David Johnston
Jashaswee wrote > i have tried in that way but its showing that the debit column doesn't > exist So show us what exactly it is that you tried and maybe someone can tell you what is wrong. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/postgresql-query-tp575

Re: [GENERAL] postgresql query

2013-06-19 Thread David Johnston
Jashaswee wrote > I have numeric values in a numeric column.the column has two parts.i want > to split in 2 differnet column . > The column value looks like this: > > Quantity > 2000 > -1000 > > both the quantity values are of a same product.but i want these in a > single line. > so what i wan

Re: [GENERAL] postgresql query

2013-06-19 Thread Victor Yegorov
2013/6/19 Jashaswee > The column value looks like this: > > Quantity > 2000 > -1000 > > both the quantity values are of a same product.but i want these in a > single > line. > so what i want is a result set that looks like: > In quantity Out quantity > --- > 2000

Re: [GENERAL] postgresql query

2013-06-19 Thread AI Rumman
Which version of Postgresql are you using? However, you may use string_agg like below if its available in your version: \d t1 Table "public.t1" Column | Type | Modifiers +-+--- i | integer | amt| integer | select * from t1; i | amt ---+- 1 | 2

[GENERAL] postgresql query

2013-06-19 Thread Jashaswee
I have numeric values in a numeric column.the column has two parts.i want to split in 2 differnet column . The column value looks like this: Quantity 2000 -1000 both the quantity values are of a same product.but i want these in a single line. so what i want is a result set that looks like: In

Re: [GENERAL] PostgreSQL query failed: ERROR: pg_atoi: zero-length

2003-09-23 Thread Nigel J. Andrews
On Tue, 23 Sep 2003, shreedhar wrote: > If I try to delete a record from my table which is giving following error > > > Warning: PostgreSQL query failed: ERROR: pg_atoi: zero-length string in > /xxx/database.inc on line 73 > > What might be the problem. Looks like line 73 of your /xxx/database

Re: [GENERAL] PostgreSQL query failed: ERROR: pg_atoi: zero-length

2003-09-23 Thread Ron Johnson
On Tue, 2003-09-23 at 05:57, shreedhar wrote: > If I try to delete a record from my table which is giving following error > > > Warning: PostgreSQL query failed: ERROR: pg_atoi: zero-length string in > /xxx/database.inc on line 73 > > What might be the problem. What version are you running? Co

[GENERAL] PostgreSQL query failed: ERROR: pg_atoi: zero-length string

2003-09-23 Thread shreedhar
If I try to delete a record from my table which is giving following error Warning: PostgreSQL query failed: ERROR: pg_atoi: zero-length string in /xxx/database.inc on line 73 What might be the problem. Regards, Sreedhar Bhaskararaju ---(end of broadcast)---