vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, What do the following lines mean : /* Tuple failed time qual, but maybe caller wants to see it anyway. */ if (keep_buf) *userbuf = buffer; else { ReleaseBuffer(buffer); *userbuf = InvalidBuffer; } What is the time qualification check ? Thanks, Suresh --------------------------------- Never miss a thing. Make Yahoo your homepage. |
| |||
| Suresh <suiyengar@yahoo.com> writes: > What is the time qualification check ? HeapTupleSatisfiesVisibility(). See src/include/utils/tqual.h src/backend/utils/time/tqual.c and if none of this is making any sense maybe you need to start here: http://developer.postgresql.org/pgdo...gres/mvcc.html regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |
| |||
| Hello all, I have a custom code written inside postgres in an application we use. The snippet is as below : Here inner plan is an index scan. scandesc = ((IndexScanState *)innerPlan)->iss_ScanDesc; flag=index_getmulti(scandesc, &tidelm->tid, 1, &ret_tids); Now consider a query like explain select * from dept,manager where did=id ; QUERY PLAN --------------------------------------------------------------------------- Nested Loop (cost=0.00..269.09 rows=45 width=72) -> seq scan on manager (cost=0.00..6.50 rows=45 width=36) -> Index Scan using id1 on dept (cost=0.00..5.82 rows=1 width=36) Index Cond: ("outer".did = dept.id) Say seq scan retrieves did in the order 30,10, 20.. My doubt is in what order will index_getmulti return tids. How does the scandesc work ? Will it return the tids as firstly macthing inners for dept=30, then dept=10 ? Please help me with this. Thanks and regards, Suresh --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |
| |||
| On 8-Mar-08, at 11:06 AM, Suresh wrote: > Hello all, > > I have a custom code written inside postgres in an application we use. > The snippet is as below : > Here inner plan is an index scan. > > scandesc = ((IndexScanState *)innerPlan)->iss_ScanDesc; > > flag=index_getmulti(scandesc, &tidelm->tid, 1, &ret_tids); > > Now consider a query like > > explain select * from dept,manager where did=id ; > QUERY PLAN > --------------------------------------------------------------------------- > Nested Loop (cost=0.00..269.09 rows=45 width=72) > -> seq scan on manager (cost=0.00..6.50 rows=45 width=36) > -> Index Scan using id1 on dept (cost=0.00..5.82 rows=1 width=36) > Index Cond: ("outer".did = dept.id) > > Say seq scan retrieves did in the order 30,10, 20.. My doubt is in > what order > will index_getmulti return tids. How does the scandesc work ? > > Will it return the tids as firstly macthing inners for dept=30, then > dept=10 ? > since you have no order by clause in the query rows will be returned in the order they are found on the disc. Dave > Please help me with this. > > Thanks and regards, > Suresh > > > > > > > > > > > > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. > Try it now. |
| |||
| Hello, I have custom postgres code. I get the error below for the query "select l_orderkey as a from tpcd.orders, tpcd.lineitem where o_orderkey=l_orderkey and l_partkey<100 and l_linestatus='F';" ERROR: stack depth limit exceeded HINT: Increase the configuration parameter "max_stack_depth". However, the same code runs fine with one condition in where clause, but fails with the error above in case of multiple conditions. Whats the cause of this error ? I tried increasing the stack limit; but it doesnt help. -- Suresh Iyengar --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |
| |||
| "Suresh" <suiyengar@yahoo.com> writes: > Hello, > > I have custom postgres code. What kind of code is this? The error below is typical if you create new threads in the server. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com Ask me about EnterpriseDB's 24x7 Postgres support! -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |
| ||||
| Hi, The code uses Asynchronous I/O for fetching certain tids. The code works fine if I use only one condition in where condition, but fails if I use multiple condition. -- Suresh Iyengar Gregory Stark <stark@enterprisedb.com> wrote: "Suresh" writes: > Hello, > > I have custom postgres code. What kind of code is this? The error below is typical if you create new threads in the server. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com Ask me about EnterpriseDB's 24x7 Postgres support! --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |