Re: [HACKERS] Timing of 'SELECT 1'

2004-03-09 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I am timing small queries, and found that a PREPARE/EXECUTE of "SELECT > 1" takes about 1.2ms on my machine. A normal SELECT doesn't take much > longer, so I am wondering why a simpler query isn't faster. Define "normal SELECT". I can think of plenty o

Re: [HACKERS] Use "average field correlation per hard disk

2004-03-09 Thread Philip Warner
At 04:08 PM 10/03/2004, Tom Lane wrote: None at the moment, but I'm open to suggestions. It seems like we might need different stats for equality probes than range probes. What about my suggestion from August 2000: "There might be a way to side-step the issue here. I assume that the index

Re: [HACKERS] Use "average field correlation per hard disk page" instead of global one?

2004-03-09 Thread Tom Lane
Alexey Nalbat <[EMAIL PROTECTED]> writes: > Due to the updating algorithm the physical order of tuples in the > table happens to be such that all equal keys are placed together, > but not ordered globally. Hmm... this is of course a weak spot of the correlation-based estimation method. If you wer

[HACKERS] Timing of 'SELECT 1'

2004-03-09 Thread Bruce Momjian
I am timing small queries, and found that a PREPARE/EXECUTE of "SELECT 1" takes about 1.2ms on my machine. A normal SELECT doesn't take much longer, so I am wondering why a simpler query isn't faster. Looking at log_executor_stats, I see the following. Execute shows nothing taking much time, mos

Re: [HACKERS] Out of space situation and WAL log pre-allocation (was Tablespaces)

2004-03-09 Thread Greg Stark
"Simon Riggs" <[EMAIL PROTECTED]> writes: > Strict behaviour is fairly straightforward, you just PANIC! There is another mode possible as well. Oracle for example neither panics nor continues, it just freezes. It keeps retrying the transaction until it finds it has space. The sysadmin or dba

Re: [HACKERS] About hierarchical_query of Oracle

2004-03-09 Thread Christopher Kings-Lynne
Try contrib/tablefunc Chris Li Yuexin wrote: > > Who can tell me how to complete /oracle's / /hierarchical_query > /through postgresql/。 / ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [HACKERS] [PATCHES] NO WAIT ...

2004-03-09 Thread Tatsuo Ishii
> > This is missing the necessary adjustments in backend/nodes/ (copy and > > equal funcs). Also the NOWAIT keyword must be added to the list of > > nonreserved keywords near the bottom of gram.y. > > Thanks for the review. I'll work on this. Here is the revised patch. -- Tatsuo Ishii ==

[HACKERS] About hierarchical_query of Oracle

2004-03-09 Thread Li Yuexin
    Who can tell me how to complete oracle's hierarchical_query through postgresql。 

Re: [HACKERS] grants

2004-03-09 Thread Christopher Kings-Lynne
hi there i'm having troubles to find how to GRANT SELECT ON all-tables-onmydb TO specificuser There isn't any such command. You need to write a stored procedure to do it for you in a loop. Chris ---(end of broadcast)--- TIP 1: subscribe and u

Re: [HACKERS] PITR Functional Design v2 for 7.5

2004-03-09 Thread Simon Riggs
>Josh Berkus [mailto:[EMAIL PROTECTED] > First off, let me compliment you on such a thorough proposal. I'm > feeling very enthusiastic about 7.5 PITR Thank you, though please realise that I am in many ways summarising a wide range of suggestions and earlier work into a coherent whole. Me too! I

Re: [HACKERS] PITR Functional Design v2 for 7.5

2004-03-09 Thread Simon Riggs
>Richard Huxton > On Monday 08 March 2004 23:28, Simon Riggs wrote: > > PITR Functional Design v2 for 7.5 > > Review of current Crash Recovery > > Is there any value in putting this section on techdocs or similar? We do > get a > small but steady trickle of people asking for details on internals,

Re: [HACKERS] PITR Functional Design v2 for 7.5

2004-03-09 Thread Josh Berkus
Simon, > SIGHUP - seems to allow different parameter settings in each backend Nope. SIGHUP means that you need to send a HUP to the postmaster, such as you would with changes to pg_hba.conf. > SUSET - maybe what you're looking for??? Yes. This means that it can be changed, at runtime,

Re: [HACKERS] cvs breakage

2004-03-09 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > Turning off rpath in src/Makefile.global did the trick. I'm amazed this > hasn't caught me before - maybe libpq has just been so stable it hasn't > made a difference ... Should the version number be bumped? or is this > just a developer gotcha? If it

Re: [HACKERS] cvs breakage

2004-03-09 Thread Bruce Momjian
Tom Lane wrote: > Andrew Dunstan <[EMAIL PROTECTED]> writes: > > Turning off rpath in src/Makefile.global did the trick. I'm amazed this > > hasn't caught me before - maybe libpq has just been so stable it hasn't > > made a difference ... Should the version number be bumped? or is this > > just

Re: [HACKERS] cvs breakage

2004-03-09 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > This is for the 7.5/HEAD tree, so it is bumped. What we don't do is > bump during development. No, we shouldn't do intermediate bumps during a devel cycle. Andrew, did you have an earlier 7.5devel libpq.so installed someplace? If so that's the gotcha

[HACKERS] PITR: Request for assistance with alpha test plan

2004-03-09 Thread Simon Riggs
A detailed proposal has now been published for PITR functionality. I'd like to now request assistance from anybody and everybody that USEs PostgreSQL, not just hackers, to work out a well-documented and comprehensive test plan for PITR. (Some have offered, though volunteers are required, so I wou

Re: [HACKERS] Stuff that doesn't work yet in IPv6 patch

2004-03-09 Thread Bruce Momjian
Tom, do you know how many of these issue are still open? --- Tom Lane wrote: > The IPv6 patch seems to still be a few bricks shy of a load. Grepping > for places that handle AF_INET but not AF_INET6 revealed these > unimple

Re: [HACKERS] [GENERAL] Shouldn't B'1' = 1::bit be true?

2004-03-09 Thread Tom Lane
Bill Moran <[EMAIL PROTECTED]> writes: > Am I missing something here? Hmm. It seems like int-to-bit casting ought to be aware of the bit-width one is casting to, and take that number of bits from the right end of the integer. This would make it be the inverse of the other direction. Right now i

Re: [HACKERS] Stuff that doesn't work yet in IPv6 patch

2004-03-09 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Tom, do you know how many of these issue are still open? Uh, none of them, I would hope. That message was a long time ago. regards, tom lane ---(end of broadcast)--- TIP 4: Don't

Re: [HACKERS] How to get Relation name from Oid ??

2004-03-09 Thread Tom Lane
"Tom Hebbron" <[EMAIL PROTECTED]> writes: > If you need to use the path returned from the regclass cast as text, you > will need to create a cast from regclass to text - this can be achieved > using the following functions - making use of the cstring type that the > return/input functions for these

[HACKERS] grants

2004-03-09 Thread Edgar Mares
hi there i'm having troubles to find how to GRANT SELECT ON all-tables-onmydb TO specificuser this is just to give the access to "specificuser" to query the database and find troubles on it thnx for your time ---(end of broadcast)

Re: [HACKERS] User defined types -- Social Security number...

2004-03-09 Thread Tom Hebbron
"Greg Patnude" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Michael Chaney" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On Mon, Mar 01, 2004 at 09:42:48AM -0800, Steve Crawford wrote: > > > I missed the start of this thread but will chime in with a comment >

[HACKERS] Use "average field correlation per hard disk page" instead of global one?

2004-03-09 Thread Alexey Nalbat
Hello. I have a table of 2'500'000 tuples and 100'000 pages, and an index on non-unique field, to each key value corresponds approximately 50'000 tuples. Due to the updating algorithm the physical order of tuples in the table happens to be such that all equal keys are placed together, but not ord

Re: [HACKERS] PITR Functional Design v2 for 7.5

2004-03-09 Thread Simon Riggs
>Andreas Pflug >> Josh Berkus wrote: > >Related to the above, what I don't see in your paper or the proposed API > is a > >way to coordinate full back-ups and WAL archiving. Obviously, the PITR > >Archive is only useful in reference to an existing full backup, so it is > >important to be able to

Re: [HACKERS] ECPG - Specifying connections, TSD, sqlca.

2004-03-09 Thread Lee Kindness
From: "Bruce Momjian" <[EMAIL PROTECTED]> > Lee Kindness wrote: > > Perhaps a cleaner way is to use an existing thread package with encompasses > > the various platform APIs - i.e. APR or ACE, or... But that's a big > > discussion, and not one I'm keen to get into at the moment. A more > > appropri

[HACKERS] The problem of making new system catalog

2004-03-09 Thread Kyoung Hwa Kim
Hello,I made new system catalog.I think it is successful.But i got an error whenI tried to select statement to get content of this catalog.This error is"catalog is missing 2 attribute(s) for relid 16652".So,I found the sourcecode that this error occurs.This file is relcache.c.This fil

Re: [HACKERS] [PATCHES] NO WAIT ...

2004-03-09 Thread Tatsuo Ishii
> Tatsuo Ishii <[EMAIL PROTECTED]> writes: > > Here is the patch I promised (against current). > > This is missing the necessary adjustments in backend/nodes/ (copy and > equal funcs). Also the NOWAIT keyword must be added to the list of > nonreserved keywords near the bottom of gram.y. Thanks f

Re: [HACKERS] cvs breakage

2004-03-09 Thread Andrew Dunstan
Peter Eisentraut wrote: Andrew Dunstan wrote: If I configure with --prefix then cvs tip seems to fail make check - initdb fails with a complaint about a missing symbol for canonicalise_path. If I don't set the prefix then it works fine. I don't have any funny LD_LIBRARY_PATH stuff set. You

Re: [HACKERS] Slony-I makes progress

2004-03-09 Thread Christopher Browne
In the last exciting episode, [EMAIL PROTECTED] (Jochem van Dieten) wrote: > Josh Berkus wrote: >> I personally don't think that a GUI tool should be the province of >> the Slony project. Seriously. I think that Slony should focus on >> a command-line api and catalogs, and allow the existing GUI

Re: [HACKERS] ECPG - Specifying connections, TSD, sqlca.

2004-03-09 Thread Lee Kindness
From: "Bruce Momjian" <[EMAIL PROTECTED]> > Lee Kindness wrote: > > I still think it's worthwhile investigating the use of GCC's __thread > > storage class specifier to remove the use of pthread_*specific in this > > case. This would also be a help to the WIN32 port since this specifier > > maps we

Re: [HACKERS] PITR Functional Design v2 for 7.5

2004-03-09 Thread Andreas Pflug
Josh Berkus wrote: 5) Full back-up Related to the above, what I don't see in your paper or the proposed API is a way to coordinate full back-ups and WAL archiving. Obviously, the PITR Archive is only useful in reference to an existing full backup, so it is important to be able to associate a

[HACKERS] Issue with 7.1.3 - regressions and such

2004-03-09 Thread Chris Browne
I recently had the 'joy' of needing to compile a copy of 7.1, to support a fairly crusty application where we'd have to do more testing than we can justify in order to upgrade to some (vastly) newer generation. Ran into a couple of things worth mentioning: 1. Had a whole lot of gory problems due

Re: [HACKERS] How to get Relation name from Oid ??

2004-03-09 Thread Tom Hebbron
"Jonathan Gardner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Friday 27 February 2004 12:01 pm, Halasipuram seshadri ramanujam wrote: > > Hello , > > > > Can somebody please tell me how to get the name of the > > relation (Attribute also) from the Oid and the > > otherway back

[HACKERS] Scalable postgresql using sys_epoll

2004-03-09 Thread Anthony_Barker
IBM has rewritten their Domino database system to use the new sys_epoll call available in the Linux 2.6 kernel. Would Postgresql benefit from using this API? Is anyone looking at this? Anthony http://xminc.com/mt/ ---(end of broadcast)--- TIP 2: yo

Re: [HACKERS] ECPG - Specifying connections, TSD, sqlca.

2004-03-09 Thread Bruce Momjian
Lee Kindness wrote: > From: "Bruce Momjian" <[EMAIL PROTECTED]> > > Lee Kindness wrote: > > > I still think it's worthwhile investigating the use of GCC's __thread > > > storage class specifier to remove the use of pthread_*specific in this > > > case. This would also be a help to the WIN32 port si

Re: [pgsql-hackers-win32] [HACKERS] Another crack at doing a Win32

2004-03-09 Thread Ronald Kuczek
Użytkownik Andrew Dunstan napisał: (guess) try configuring without readline. Or compile readline with your Mingw version, or just replace readline.a with readline.dll in your lib directory. All works with readline fine. Best regards Rony ---(end of broadcast)

Re: [HACKERS] User defined types -- Social Security number...

2004-03-09 Thread Greg Patnude
"Michael Chaney" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, Mar 01, 2004 at 09:42:48AM -0800, Steve Crawford wrote: > > I missed the start of this thread but will chime in with a comment > > anyway. > > > > My rule is to select an appropriate numeric type of data if you w

Re: [HACKERS] cvs breakage

2004-03-09 Thread Andrew Dunstan
Andrew Dunstan wrote: Fresh cvs tip checkout. If I configure with --prefix then cvs tip seems to fail make check - initdb fails with a complaint about a missing symbol for canonicalise_path. If I don't set the prefix then it works fine. I don't have any funny LD_LIBRARY_PATH stuff set. Furthe

Re: [HACKERS] cvs breakage

2004-03-09 Thread Bruce Momjian
Andrew Dunstan wrote: > > Fresh cvs tip checkout. > > If I configure with --prefix then cvs tip seems to fail make check - > initdb fails with a complaint about a missing symbol for > canonicalise_path. If I don't set the prefix then it works fine. I don't > have any funny LD_LIBRARY_PATH stuf

[HACKERS] cvs breakage

2004-03-09 Thread Andrew Dunstan
Fresh cvs tip checkout. If I configure with --prefix then cvs tip seems to fail make check - initdb fails with a complaint about a missing symbol for canonicalise_path. If I don't set the prefix then it works fine. I don't have any funny LD_LIBRARY_PATH stuff set. cheers andrew -

Re: [HACKERS] psqlscan.l

2004-03-09 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Magnus Hagander wrote: >> Could we have the output from psqlscan.l (in src/bin/psql) added to >> the nightly snapshots, the same way it's done with with the other >> flex output files, please? > Done. My apologies ... intended it to do that in the fi

Re: [HACKERS] psqlscan.l

2004-03-09 Thread Peter Eisentraut
Magnus Hagander wrote: > Could we have the output from psqlscan.l (in src/bin/psql) added to > the nightly snapshots, the same way it's done with with the other > flex output files, please? Done. ---(end of broadcast)--- TIP 1: subscribe and unsubs

Re: [HACKERS] ECPG - Specifying connections, TSD, sqlca.

2004-03-09 Thread Bruce Momjian
Lee Kindness wrote: > Shridhar, Once the patches I've put forward are applied there's still > a further change I've got planned which will remove the mutex locking > in the common case - a NULL/DEFAULT connection parameter (I'll post a > patch soon). This leaves the threaded case with comparable pe

Re: [HACKERS] [OT] Respository [was Re: [PERFORM] Feature request:

2004-03-09 Thread Joe Conway
Bruce Momjian wrote: Shridhar Daithankar wrote: I was wondering what people use to keep track of their personal development especially when they do not have a cvs commit access. See the developer's FAQ. They usually use cporig to make copies of files they are going to modify, then difforig to sen

Re: [HACKERS] raising the default default_statistics_target

2004-03-09 Thread Tom Lane
"scott.marlowe" <[EMAIL PROTECTED]> writes: > Hi Tom. I ran some very simple tests on analyze times and query plan > times on a very simple table, with data randomly distributed. The index > was on a date field, since that's what I was testing last. Thanks. > I also ran some quick tests on sm

[HACKERS] psqlscan.l

2004-03-09 Thread Magnus Hagander
Hi! Could we have the output from psqlscan.l (in src/bin/psql) added to the nightly snapshots, the same way it's done with with the other flex output files, please? It would do wonders for those of us too lazy to fix their broken flex installations. And if the same script is used to generate the r

Re: [HACKERS] PITR Functional Design v2 for 7.5

2004-03-09 Thread Josh Berkus
Simon, First off, let me compliment you on such a thourough proposal. I'm feeling very enthusiastic about 7.5 PITR based on the amount of thought you've given the project. Based on throuroughness, I wanted to make a few comments and suggestions. All of the below are in the category of "extr

Re: [HACKERS] [OT] Respository [was Re: [PERFORM] Feature request: smarter

2004-03-09 Thread Bruce Momjian
Shridhar Daithankar wrote: > On Sunday 07 March 2004 09:16, Tom Lane wrote: > > Personally I consider -c format the only one of the three that is > > readable for reviewing purposes, so even if I weren't intending > > immediate application, I'd ask for -c before looking at the patch. > > There are

[HACKERS] ECPG - Specifying connections, TSD, sqlca.

2004-03-09 Thread Lee Kindness
Shridhar, Once the patches I've put forward are applied there's still a further change I've got planned which will remove the mutex locking in the common case - a NULL/DEFAULT connection parameter (I'll post a patch soon). This leaves the threaded case with comparable performance to the non-threade

Re: [HACKERS] raising the default default_statistics_target

2004-03-09 Thread scott.marlowe
On Sun, 7 Mar 2004, Tom Lane wrote: > Neil Conway <[EMAIL PROTECTED]> writes: > > Tom Lane wrote: > >> This is something we need to consider, but we'll need more evidence > >> before making a choice. One thing that we have very little data about > >> is how much difference it makes in the quality

Re: [HACKERS] raising the default default_statistics_target

2004-03-09 Thread Josh Berkus
Guys, > Hm, that had nothing to do with multi-column correlation though. > I'm at a loss to think of any work that matches with Josh's > recollection. H it's possible that early e-mails about Manfred's patch claimed to improve performance for multi-column indexes. But it's also pos

Re: [HACKERS] [PATCHES] log_line_info

2004-03-09 Thread Rod Taylor
> >>After this is applied (fingers crossed) and everyone is happy, I will > >>submit a patch to remove log_timestamp, log_pid and (if we are agreed on > >>it) log_source_port. > Is there agreement on removing these 3 config vars? There is from me. ---(end of broadcast

Re: [HACKERS] [PATCHES] log_line_info

2004-03-09 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: >>> After this is applied (fingers crossed) and everyone is happy, I will >>> submit a patch to remove log_timestamp, log_pid and (if we are agreed on >>> it) log_source_port. > Is there agreement on removing these 3 config vars? Now that I look at it,

Re: [HACKERS] [PATCHES] NO WAIT ...

2004-03-09 Thread Tom Lane
Tatsuo Ishii <[EMAIL PROTECTED]> writes: > Here is the patch I promised (against current). This is missing the necessary adjustments in backend/nodes/ (copy and equal funcs). Also the NOWAIT keyword must be added to the list of nonreserved keywords near the bottom of gram.y.

Re: [HACKERS] raising the default default_statistics_target

2004-03-09 Thread Tom Lane
Robert Treat <[EMAIL PROTECTED]> writes: > I think the thread you're thinking of is on or about this post: > http://archives.postgresql.org/pgsql-patches/2003-12/msg00039.php > Manfred Koizar produced a patch that modified index correlation by > sorting equal key values based on item pointers. The

Re: [HACKERS] [PATCHES] log_line_info

2004-03-09 Thread Andrew Dunstan
Bruce Momjian wrote: Andrew Dunstan wrote: After this is applied (fingers crossed) and everyone is happy, I will submit a patch to remove log_timestamp, log_pid and (if we are agreed on it) log_source_port. I have applied this patch. It will be a great addition to PostgreSQL. Is the

Re: [HACKERS] raising the default default_statistics_target

2004-03-09 Thread Robert Treat
I think the thread you're thinking of is on or about this post: http://archives.postgresql.org/pgsql-patches/2003-12/msg00039.php Manfred Koizar produced a patch that modified index correlation by sorting equal key values based on item pointers. The patch went as far as getting accepted into the p

Re: [HACKERS] [PATCHES] NO WAIT ...

2004-03-09 Thread Tatsuo Ishii
Here is the patch I promised (against current). Regression tests all passed. One thing I have not checked is the doc(lock.sgml). For some reason I failed to install docbook V4.2 (I have working docbook V3.1 though), and I couldn't test the correctness of the file. Also, it would be nice if some one

Re: [HACKERS] PITR Functional Design v2 for 7.5

2004-03-09 Thread Richard Huxton
On Monday 08 March 2004 23:28, Simon Riggs wrote: > PITR Functional Design v2 for 7.5 Blimey - that's a long post :-) Thanks for explaining things simply enough that a non-hacker like me can understand. Well - almost understand ;-) > Review of current Crash Recovery Is there any value in puttin

[HACKERS] a question for share memory

2004-03-09 Thread 博? 翟
Dear sir:     Now ,I face a problem of  expanding structure shmemvariableCache in the share memory.     When it comes to  give value to this  new field.I can;t initialize the system.    Thank you for your respond!    Do You Yahoo!? 完全免费的雅虎电邮,马上注册获赠额外6