Re: [HACKERS] Needs Suggestion

2011-04-19 Thread Vibhor Kumar
On Apr 20, 2011, at 4:08 AM, SUBHAM ROY wrote: > Suppose Postgres is installed in two computers C1 & C2. > C1 have some database tables. How can I copy these database tables from C1 to > C2. > I mean to say that can I copy tables from postgres installed in one m/c to > another m/c. > Is there

[HACKERS] Needs Suggestion

2011-04-19 Thread SUBHAM ROY
Suppose Postgres is installed in two computers C1 & C2. C1 have some database tables. How can I copy these database tables from C1 to C2. I mean to say that can I copy tables from postgres installed in one m/c to another m/c. Is there any command in postgres to do so or any other short cut techniqu

Re: [HACKERS] Needs Suggestion

2011-03-28 Thread Dimitri Fontaine
SUBHAM ROY writes: > I want to know how can we measure the execution time of a query in Postgres > (Explain analyze will not do). Also is there any tools available in Linux > for measuring the performance of queries of databases such as Oracle 11g, > Postgres, etc. > Any suggestions will be very h

[HACKERS] Re: [HACKERS] Needs Suggestion

2011-03-27 Thread Tomáš Pospíšil
t; Předmět: Re: [HACKERS] Needs Suggestion > Datum: 27.3.2011 19:02:32 > > Actually, I want to run some set of queries in postgres on a HUGE data set. > I have to compute the actual execution time for each of those queries. So > how can I do that

Re: [HACKERS] Needs Suggestion

2011-03-27 Thread Gurjeet Singh
In these (Postgres) mailing lists, top-posting is not preferred. See my response below. On Sun, Mar 27, 2011 at 1:01 PM, SUBHAM ROY wrote: > > On Sun, Mar 27, 2011 at 10:20 PM, Gurjeet Singh > wrote: > >> On Sun, Mar 27, 2011 at 9:22 AM, SUBHAM ROY wrote: >> >>> Hi, >>> I am currently a studen

Re: [HACKERS] Needs Suggestion

2011-03-27 Thread SUBHAM ROY
Actually, I want to run some set of queries in postgres on a HUGE data set. I have to compute the actual execution time for each of those queries. So how can I do that in Postgres ? Suppose in Oracle following thing can be done : * set timing on; select stuff from mytab; Elapsed: 00:00:02.82 *Li

Re: [HACKERS] Needs Suggestion

2011-03-27 Thread Gurjeet Singh
On Sun, Mar 27, 2011 at 9:22 AM, SUBHAM ROY wrote: > Hi, > I am currently a student of IIT Bombay. I am doing a project on "Benchmark > design". For that I need to measure the performance of various queries in > databases. > I want to know how can we measure the execution time of a query in Postg

Re: [HACKERS] Needs Suggestion

2011-03-27 Thread 3dmashup
Subham, I would start with reviewing Prof Mike Stonebrakers and Dr Paula Hawthorns paper http://portal.acm.org/citation.cfm?doid=582095.582097 you can also look at Perftrack http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.101.7063&rep=rep1&type=pdf regards 3dmashUp On 3/27/2

[HACKERS] Needs Suggestion

2011-03-27 Thread SUBHAM ROY
Hi, I am currently a student of IIT Bombay. I am doing a project on "Benchmark design". For that I need to measure the performance of various queries in databases. I want to know how can we measure the execution time of a query in Postgres (Explain analyze will not do). Also is there any tools avai

Re: [HACKERS] Needs Suggestion

2010-09-23 Thread Andrew Dunstan
On 09/22/2010 05:03 AM, sub...@cse.iitb.ac.in wrote: Actually, I used palloc() to set the stack base address. And I am trying to create only a single thread, then also it is causing problem. Did you not understand when people told you this wasn't going to work? Don't create any thr

Re: [HACKERS] Needs Suggestion

2010-09-23 Thread subham
So, Can I increase the stack depth limit to a large value ? > On 22/09/10 12:03, sub...@cse.iitb.ac.in wrote: >> Actually, I used palloc() to set the stack base address. >> And I am trying to create only a single thread, then also it is causing >> problem. >> Actually, I created all the data-str

Re: [HACKERS] Needs Suggestion

2010-09-23 Thread subham
Actually, I used palloc() to set the stack base address. And I am trying to create only a single thread, then also it is causing problem. Actually, I created all the data-structures using palloc(), then I am passing these to the child thread. Even if I make these variables global then also it is

Re: [HACKERS] Needs Suggestion

2010-09-22 Thread Tom Lane
sub...@cse.iitb.ac.in writes: > How can I increase the stack depth limit ? Is it only by modifying the > postgres.conf file, but there I cannot increase the stack depth beyond 4 > MB. > Actually, my problem is that, when I set the stack base address of the > child thread using the POSIX library fu

Re: [HACKERS] Needs Suggestion

2010-09-22 Thread Heikki Linnakangas
On 22/09/10 12:03, sub...@cse.iitb.ac.in wrote: Actually, I used palloc() to set the stack base address. And I am trying to create only a single thread, then also it is causing problem. Actually, I created all the data-structures using palloc(), then I am passing these to the child thread. Even i

Re: [HACKERS] Needs Suggestion

2010-09-22 Thread Heikki Linnakangas
On 22/09/10 11:14, sub...@cse.iitb.ac.in wrote: How can I increase the stack depth limit ? Is it only by modifying the postgres.conf file, but there I cannot increase the stack depth beyond 4 MB. Actually, my problem is that, when I set the stack base address of the child thread using the POSIX

[HACKERS] Needs Suggestion

2010-09-22 Thread subham
How can I increase the stack depth limit ? Is it only by modifying the postgres.conf file, but there I cannot increase the stack depth beyond 4 MB. Actually, my problem is that, when I set the stack base address of the child thread using the POSIX library function "pthread_setstackaddr()", I am u

Re: [HACKERS] Needs Suggestion

2010-09-02 Thread Robert Haas
On Mon, Aug 30, 2010 at 11:12 AM, wrote: > Can anyone explain this ? > > My question is - > What is lnext:; , lreplace:; in postgres code ? > I found lnext:; in 1501 and lreplace:; in 2065 in execMain.c file. It's a label. http://www.lysator.liu.se/c/bwk-tutor.html#goto -- Robert Haas Enterpr

[HACKERS] Needs Suggestion

2010-09-02 Thread subham
Can anyone explain this ? My question is - What is lnext:; , lreplace:; in postgres code ? I found lnext:; in 1501 and lreplace:; in 2065 in execMain.c file. -- Thank You, Subham Roy. CSE, IIT Bombay. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes

Re: [HACKERS] Needs Suggestion

2010-08-05 Thread Tom Lane
sub...@cse.iitb.ac.in writes: > I need suggestion about how region based memory management is done in > postgres. Have you read src/backend/utils/mmgr/README ? It's old but still reasonably accurate. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hacker

[HACKERS] Needs Suggestion

2010-08-05 Thread subham
I need suggestion about how region based memory management is done in postgres. I know the concept of region based memory management and also know about the functions like memorycontextswitch(). But I am not understanding how Postgres uses hierarchical, region-based memory management. That is I a

Re: [HACKERS] Needs Suggestion

2010-07-03 Thread Robert Haas
On Sat, Jul 3, 2010 at 1:04 PM, wrote: > I am currently a student of IIT Bombay of CSE department. I am doing a > project on postgres. I need to understand its code thoroughly, so I need > "ddd" to "step through" its code. I need to start postgres on the > "backend" mode to work it with "ddd".But

Re: [HACKERS] Needs Suggestion

2010-07-03 Thread Bruce Momjian
sub...@cse.iitb.ac.in wrote: > > Hi, > > I am currently a student of IIT Bombay of CSE department. I am doing a > project on postgres. I need to understand its code thoroughly, so I need > "ddd" to "step through" its code. I need to start postgres on the > "backend" mode to work it with "ddd".But

[HACKERS] Needs Suggestion

2010-07-03 Thread subham
Hi, I am currently a student of IIT Bombay of CSE department. I am doing a project on postgres. I need to understand its code thoroughly, so I need "ddd" to "step through" its code. I need to start postgres on the "backend" mode to work it with "ddd".But I am facing some difficulties in setting u