[HACKERS] Encoding names

2001-02-21 Thread Karel Zak
Hi, I a little work with encodings (Japanese, Latin(s)) and I see that PG use non-standard encoding names. Why is here SJIS instead Shift-JIS, EUC_JP intead EUC-JP, Latin2 instead ISO-8859-2 ? It is not good for example for applications that output data to HTML and needs set correct

[HACKERS] Re: floating point representation

2001-02-21 Thread Robert Schrem
I think a formating mode where only the relevant digits are written to the output would be great as an alternative to the discussed fixed formatting strings. In this context i think of 'relevant' as in the following: 'Output as few characters as possible but ensure that scanf is still able to

Re: [HACKERS] Encoding names

2001-02-21 Thread Tatsuo Ishii
I a little work with encodings (Japanese, Latin(s)) and I see that PG use non-standard encoding names. Why is here SJIS instead Shift-JIS, EUC_JP intead EUC-JP, Latin2 instead ISO-8859-2 ? It is not good for example for applications that output data to HTML and needs set correct

Re: [HACKERS] Encoding names

2001-02-21 Thread Karel Zak
But HTML meta tags used to use their own encoding names such as x-euc-jp, x-sjis Not sure, my mozilla understand "ISO--x", "Shift-JIS" format too. But it's irrelevant, important is that something like "Latin2" or "SJIS" or "EUC_JP" are less standard names. And here aren't HTML only,

Re: [HACKERS] Re: floating point representation

2001-02-21 Thread Philip Warner
At 10:19 21/02/01 +0100, Robert Schrem wrote: The advantage would be, that we only generate as much ASCII data as absolutly neccessary to rebuild the original data exactly. At least this is what I would expect from pg_dump. pg_dump is only one side of thre problem, but the simplest solution

Re: [HACKERS] Encoding names

2001-02-21 Thread Tatsuo Ishii
But HTML meta tags used to use their own encoding names such as x-euc-jp, x-sjis Not sure, my mozilla understand "ISO--x", "Shift-JIS" format too. But it's irrelevant, important is that something like "Latin2" or "SJIS" or "EUC_JP" are less standard names. And here aren't HTML

Re: [HACKERS] Re: floating point representation

2001-02-21 Thread Robert Schrem
On Wed, 21 Feb 2001, you wrote: At 10:19 21/02/01 +0100, Robert Schrem wrote: The advantage would be, that we only generate as much ASCII data as absolutly neccessary to rebuild the original data exactly. At least this is what I would expect from pg_dump. pg_dump is only one side of thre

[HACKERS] Re: Encoding names

2001-02-21 Thread Thomas Lockhart
You not must change current names, you can add to pg_conv_tbl[] new lines with names synonym for already existing encoding... {LATIN1, "LATIN1", 0, latin12mic, mic2latin1, 0, 0}, {LATIN1, "ISO-8859-1", 0, latin12mic, mic2latin1, 0, 0}, And if you order this table by alphabet and in

[HACKERS] Re: Encoding names

2001-02-21 Thread Karel Zak
On Wed, 21 Feb 2001, Thomas Lockhart wrote: You not must change current names, you can add to pg_conv_tbl[] new lines with names synonym for already existing encoding... {LATIN1, "LATIN1", 0, latin12mic, mic2latin1, 0, 0}, {LATIN1, "ISO-8859-1", 0, latin12mic, mic2latin1, 0, 0},

Re: [HACKERS] floating point representation

2001-02-21 Thread Peter Eisentraut
Philip Warner writes: At 22:29 20/02/01 +0100, Peter Eisentraut wrote: Tom Lane writes: And we frequently see questions from users about how they can display fewer digits than the system wants to give them --- or, more generally, format the output in some special form. to_char()

Re: [HACKERS] beta5 ...

2001-02-21 Thread Lamar Owen
Peter Eisentraut wrote: Hannu Krosing writes: It would be nice if someone (pgsql inc., great bridge, etc.) provided a central web page for registering the results so that you won't need to scan athe whole list to find out if your platform is already tested. "Platform already tested" is

[HACKERS] low priority postmaster threads?

2001-02-21 Thread Chris Storah
Is there any way in psql to connect to a database and reduce the run priority of the child thread it kicks off ? i.e. equivalent of 'nice' on the thread? From first looks at the code, it seems to fork off the process and there is a pid that can be niced. If an extra run level parameter is passed

[HACKERS] Re: Encoding names

2001-02-21 Thread Tatsuo Ishii
As you probably know, there is already a binary search algorithm coded up for the date/time string lookups in utils/adt/datetime.c. Since that lookup caches the last value (which could be done here too) most lookups are immediate. Are you proposing to make a change Karel, or just

Re: [HACKERS] beta5 ...

2001-02-21 Thread Peter Eisentraut
Hannu Krosing writes: It would be nice if someone (pgsql inc., great bridge, etc.) provided a central web page for registering the results so that you won't need to scan athe whole list to find out if your platform is already tested. "Platform already tested" is a misguided concept. Almost

[HACKERS] Re: Encoding names

2001-02-21 Thread Karel Zak
On Thu, 22 Feb 2001, Tatsuo Ishii wrote: As you probably know, there is already a binary search algorithm coded up for the date/time string lookups in utils/adt/datetime.c. Since that lookup caches the last value (which could be done here too) most lookups are immediate. Are

RE: [HACKERS] Re: [ADMIN] v7.1b4 bad performance

2001-02-21 Thread Hiroshi Inoue
Tom Lane wrote: platform) i686-pc-linux-gnu, compiled by GCC egcs-2.91.60(turbolinux 4.2) min delay) 10msec according to your test program. -B) 64 (all other settings are default) Thanks. Could I trouble you to run it again with a larger -B, say 1024 or 2048? What I've

Re: [HACKERS] SunOS4

2001-02-21 Thread Tom Lane
Peter Eisentraut [EMAIL PROTECTED] writes: Tatsuo Ishii writes: o regex/utils.h included twice somewhere. I added #ifndef UTILS_H... to utils.h Okay. Actually, the problem is probably gone. c.h was including regex/utils.h if the platform didn't have memmove(), but I thought that was a very

Re: [HACKERS] beta5 ...

2001-02-21 Thread Vince Vielhaber
On Wed, 21 Feb 2001, The Hermit Hacker wrote: On Wed, 21 Feb 2001, Vince Vielhaber wrote: On Wed, 21 Feb 2001, The Hermit Hacker wrote: Vince, is this something that PostgreSQL.Org can have on the web page relatively quickly? The beta or registering the results? After the

[HACKERS] Bug: COUNT() and ExecEvalAggref error

2001-02-21 Thread Dan Lyke
I've looked through my archives of pgsql-general and pgsql-hackers and haven't seen this, but I do tend to flush the deleted messages occasionally. I'm trying to get a build off the current CVS tree, but my working build is from Sunday evening, so I feel moderately current. Two builds of

Re: [HACKERS] Bug: COUNT() and ExecEvalAggref error

2001-02-21 Thread Tom Lane
Dan Lyke [EMAIL PROTECTED] writes: On my development machine (Built from CVS late Sunday, February 18), I get: test=# select count(id) from abc; ERROR: ExecEvalAggref: no aggregates in this expression context Try make distclean, configure, make all. Someone else reported this same

Re: [HACKERS] SunOS4

2001-02-21 Thread Tatsuo Ishii
o SunOS4 does not have atexit (used in psql). -- igore it Maybe on_exit() is available, or even more portable? Let me check it. SunOS4 has on_exit. Can we change atexit to on_exit? o to make shared library I have added an entry for SunOS4 in Makefile.shlib. I'm not sure

Re: [HACKERS] beta5 ...

2001-02-21 Thread Vince Vielhaber
On Wed, 21 Feb 2001, The Hermit Hacker wrote: On Wed, 21 Feb 2001, Vince Vielhaber wrote: On Wed, 21 Feb 2001, The Hermit Hacker wrote: Vince, is this something that PostgreSQL.Org can have on the web page relatively quickly? The beta or registering the results? After the

Re: [HACKERS] SunOS4

2001-02-21 Thread Tatsuo Ishii
o no RAND_MAX or EXIT_FAILURE found. I simply added them to c.h. EXIT_FAILURE is defined in src/bin/psql/settings.h; I can't find it used outside psql. So SunOS should be ok with this in current. RAND_MAX should be inside an #ifndef RAND_MAX, not in a SunOS specific section. Ok. o

Re: [HACKERS] PHP 4.0.4pl1 / Beta 5

2001-02-21 Thread Tom Lane
Peter Eisentraut [EMAIL PROTECTED] writes: I doubt that it ever really worked, or could work, to install a new version over an old one without deleting the old one first. This here is just one problem. We can't be making these funny workarounds every time the set of installed user visible

[HACKERS] Re: beta5 ...

2001-02-21 Thread Mitch Vincent
I have a bunch of machines here, some are rather old (K6-200s,P133s, some 486s etc) but they're just collecting dust now. I would be more than happy to install any OS and do build testing for PostgreSQL is there is a need.. What OSes need to have PostgreSQL built/tested on that the developers

Re: [HACKERS] PHP 4.0.4pl1 / Beta 5

2001-02-21 Thread Peter Eisentraut
Tom Lane writes: Deleting files in the install directory during installation is very inappropriate. At least let's try to get rid of it for 7.2. I don't like it much either, but I agree with Larry that it's an essential transition step for now. Perhaps we can remove it again in 7.2 or

Re: [HACKERS] PHP 4.0.4pl1 / Beta 5

2001-02-21 Thread Larry Rosenman
* Peter Eisentraut [EMAIL PROTECTED] [010221 16:09]: Tom Lane writes: Deleting files in the install directory during installation is very inappropriate. At least let's try to get rid of it for 7.2. I don't like it much either, but I agree with Larry that it's an essential

Re: [HACKERS] beta5 ...

2001-02-21 Thread Larry Rosenman
* Lamar Owen [EMAIL PROTECTED] [010221 16:36]: Vince Vielhaber wrote: the things Lamar and Peter also mentioned. Note: I'm probably 450 messagees behind due to a 2 day dsl outage; I may have missed some of the conversation. Some messages trickled in, the rest flooded in over night. I

Re: [HACKERS] PHP 4.0.4pl1 / Beta 5

2001-02-21 Thread Tom Lane
Peter Eisentraut [EMAIL PROTECTED] writes: Larry Rosenman writes: AND make sure we nuke any OLD version in $(destdir)/include... Which will cause a file not found vs. compile errors based on redeclares...? Deleting files in the install directory during installation is very inappropriate.

Re: [HACKERS] SunOS4

2001-02-21 Thread Peter Eisentraut
Tatsuo Ishii writes: o c.h 's sunos4 part should not include varargs.h. (Tom has already fixed it) Instead, stdlib.h and stdarg.h should be included. This should be okay by now. o no RAND_MAX or EXIT_FAILURE found. I simply added them to c.h. EXIT_FAILURE is defined in

Re: [HACKERS] Re: floating point representation

2001-02-21 Thread Tom Lane
Philip Warner [EMAIL PROTECTED] writes: The other issues, like what is sent to psql via interfaces like odbc (currently text) should be application/DBA based and setable on a per-attribute basis. eg. some applications want 1. because the data came from a piece of hardware with a know

Re: [HACKERS] SunOS4

2001-02-21 Thread Tatsuo Ishii
Tatsuo Ishii [EMAIL PROTECTED] writes: o SunOS4 does not have atexit (used in psql). -- igore it Maybe on_exit() is available, or even more portable? SunOS4 has on_exit. Can we change atexit to on_exit? atexit is ANSI C. on_exit is not found here (HPUX) at all. Looks like we

Re: [HACKERS] beta5 ...

2001-02-21 Thread Tom Lane
The Hermit Hacker [EMAIL PROTECTED] writes: Vince, is this something that PostgreSQL.Org can have on the web page relatively quickly? On Wed, 21 Feb 2001, Hannu Krosing wrote: It would be nice if someone (pgsql inc., great bridge, etc.) provided a central web page for registering the

Re: [HACKERS] SunOS4

2001-02-21 Thread Tom Lane
Tatsuo Ishii [EMAIL PROTECTED] writes: o SunOS4 does not have atexit (used in psql). -- igore it Maybe on_exit() is available, or even more portable? SunOS4 has on_exit. Can we change atexit to on_exit? atexit is ANSI C. on_exit is not found here (HPUX) at all. Looks like we need another

Re: [HACKERS] beta5 ...

2001-02-21 Thread Justin Clift
Hi Vince, That's really nifty. I don't know how to word it, but I think it might be worth including something to find out if the machine was "out-of-the box" with just the recommended installation utils (i.e. a "new build" of AIX, NT, Solaris, etc, then gcc, bison or whatever) vs. a machine

Re: [HACKERS] beta5 ...

2001-02-21 Thread The Hermit Hacker
On Wed, 21 Feb 2001, Vince Vielhaber wrote: On Wed, 21 Feb 2001, The Hermit Hacker wrote: Vince, is this something that PostgreSQL.Org can have on the web page relatively quickly? The beta or registering the results? After the last time I won't put beta releases on the website, but

Re: [HACKERS] PHP 4.0.4pl1 / Beta 5

2001-02-21 Thread Peter Eisentraut
Larry Rosenman writes: AND make sure we nuke any OLD version in $(destdir)/include... Which will cause a file not found vs. compile errors based on redeclares...? Deleting files in the install directory during installation is very inappropriate. At least let's try to get rid of it for 7.2.

RE: [HACKERS] beta5 ...

2001-02-21 Thread Christopher Kings-Lynne
What about adding a field where they paste the output of 'uname -a' on their system...? Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Justin Clift Sent: Thursday, February 22, 2001 12:52 PM To: Vince Vielhaber Cc: [EMAIL PROTECTED]

Re: [HACKERS] low priority postmaster threads?

2001-02-21 Thread Tom Lane
I wrote: Chris Storah [EMAIL PROTECTED] writes: What I am looking for is a postgres system that runs 100 users or so at 'full speed', and major day long queries at a 'when idle' priority. The trouble here is that CPU nice doesn't (on most platforms) change the behavior of the I/O scheduler,

Re: [HACKERS] low priority postmaster threads?

2001-02-21 Thread Tom Lane
Chris Storah [EMAIL PROTECTED] writes: Is there any way in psql to connect to a database and reduce the run priority of the child thread it kicks off ? i.e. equivalent of 'nice' on the thread? Not at the moment, though it'd be a fairly trivial hack on postgres.c to add a "-nice n" backend

RE: [HACKERS] PHP 4.0.4pl1 / Beta 5

2001-02-21 Thread Larry Rosenman
but the changes in the include structure force us to. If someone includes the old ones that aren't supposed to be there, we cause non-obvious compile errors. LER -Original Message- From: Peter Eisentraut [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 10:56 AM To: Larry

[HACKERS] RE: Re: [ADMIN] v7.1b4 bad performance

2001-02-21 Thread Lincoln Yeoh
Oops. I rechecked the start up script, and the 7.0.3 doesn't have fsync off or whatever. Dunno why I thought it was on (heh maybe because it was a lot faster than 6.5.3!). Hmm, this means 7.0.3 is quite fast... Cheerio, Link.

[HACKERS] RE: Re: [ADMIN] v7.1b4 bad performance

2001-02-21 Thread Lincoln Yeoh
Just another data point. I downloaded a snapshot yesterday - Changelogs dated Feb 20 17:02 It's significantly slower than "7.0.3 with fsync off" for one of my webapps. 7.0.3 with fsync off gets me about 55 hits per sec max (however it's interesting that the speed keeps dropping with continued