Re: [SQL] ODBC 7.1

2001-08-09 Thread Hiroshi Inoue
airly slow. (significantly slower > than 6.4/7.0) > Is the comparison for the < 8k data ? Is it as fast as 6.4/7.0 except concurrent write ? regards, Hiroshi Inoue ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unre

Re: [HACKERS] Re: [SQL] possible row locking bug in 7.0.3 & 7.1

2001-03-30 Thread Hiroshi Inoue
ettup and > heap_fetch: > SELECT seems to be able to return a different result from that of preceding SELECT FOR UPDATE even after applying your change. SELECT doesn't seem guilty but the result is far from intuitive. It seems impossoble for all queires inside such a function to use a

Re: [HACKERS] Re: [SQL] possible row locking bug in 7.0.3 & 7.1

2001-03-29 Thread Hiroshi Inoue
ssible in 7.1? > > > >Just looked in heapam.c - I can fix it in two hours. > >The question is - should we do this now? > >Comments? > > It's a bug; how confident are you of the fix? > I doubt if it's a bug of SELECT. Well what 'concurrent UPDATE the

Re: [HACKERS] Re: [SQL] possible row locking bug in 7.0.3 & 7.1

2001-03-27 Thread Hiroshi Inoue
e latest tuples. I don't think of any simple way for 'SELECT FOR UPDATE' to have the same visibility as simple SELECT. regards, Hiroshi Inoue ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [SQL] Error when selecting rows from a temporary table in ODBC

2001-03-21 Thread Hiroshi Inoue
x27; Seems a chained query is issued. Queries in a chained query are parse and analyzed all together before the chained query's execution. Therefore SELECT couldn't see tables which didn't exist before the execution. regards, Hiroshi Inoue ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [SQL] SQL functions not locking properly?

2000-09-25 Thread Hiroshi Inoue
gt; session1<< select id from idseq where name = $1::text; Queries in a function are executed under the snapshot of the top level query. So SELECT could never see changes made by other backends once the top level query started. If you change the definition of above function to return setof int8,you may see 2 rows returned. Maybe you could add 'for update' clause to your above query. > session1<< ' language 'sql'; > session1>> CREATE > Regards. Hiroshi Inoue

RE: [SQL] sql query not using indexes

2000-09-21 Thread Hiroshi Inoue
But, supose I make a query > select * from table where code > 'AAA' limit 10. it will read the entire > table only to give me the first 10 while in release 6.5 it will fetch the > index for the first 10 in a very fast manner, indeed the 6.5 release > resolves in 1 second while the 7.0 release resolves in 10-20 sec. > Probably the distribution of rows in teste where login > 'AAA' isn't uniform. You had better add 'ORDER BY login' to your query. Regards. Hiroshi Inoue

RE: [SQL] Create table in functions

2000-08-23 Thread Hiroshi Inoue
> -Original Message- > From: Tom Lane > > "Hiroshi Inoue" <[EMAIL PROTECTED]> writes: > > Hmm,Andreas's original function seems to contain other statements. > > If the function contains DML statements for the table Temp_Num_Table, > > it

RE: [SQL] Create table in functions

2000-08-23 Thread Hiroshi Inoue
7;round to writing querytree copy routines > for them. Ian Turner finally did all the gruntwork for that a few > weeks ago, so this does work in current sources and will be in 7.1. > Hmm,Andreas's original function seems to contain other statements. If the function contains DML statements for the table Temp_Num_Table, it wouldn't work properly. i.e 1st call would work but 2nd call woudn't. Regards. Hiroshi Inoue [EMAIL PROTECTED]

RE: [SQL] Problem with subquery in CHECK constraint.

2000-06-08 Thread Hiroshi Inoue
XREF,above condition isn't satisfied any longer. So isn't the constraint for the table XREF either ? Regards. Hiroshi Inoue [EMAIL PROTECTED]

RE: [GENERAL] Re: [SQL] oracle rownum equivalent?

2000-06-07 Thread Hiroshi Inoue
x27;t understand very well how > these are used. Maybe someone else can say or you can experiment... > AFAIK,there's no pseudo-column like Oracle's rownum which is dynamically allocated at execution time. Regards. Hiroshi Inoue [EMAIL PROTECTED]

RE: [SQL] Problem with subquery in CHECK constraint.

2000-06-07 Thread Hiroshi Inoue
ere seems to be more serious problems. 1) The constraint is not only for the defined table but also for referenced tables in the subquery. 2) There should be some standard lock mechanism for the range restricted by the subquery. I'm suspicious that we should/could implement constra

RE: [SQL] Use of index in 7.0 vs 6.5

2000-05-25 Thread Hiroshi Inoue
unction out of VACUUM and making it invokable as a separate > > statement. > > Added: > > * Remove ANALYZE from VACUUM so it can be run separately without locks > * Gather more accurate statistics using indexes > Gathering statistics using indexes on-fly is best. However

RE: [SQL] Use of index in 7.0 vs 6.5

2000-05-25 Thread Hiroshi Inoue
example,from 0.5 to 0.2 which is the fudge factor of attdisbursion calculation. Regards. Hiroshi Inoue [EMAIL PROTECTED]