Re: [HACKERS] 7.0.2 -> 7.0.3 problem - anyone? - Fixed!

2000-11-12 Thread Tom Lane
I said: > if (ControlFile->blcksz != BLCKSZ) > elog(STOP, "database was initialized with BLCKSZ %d,\n\tbut the backend was >compiled with BLCKSZ %d.\n\tlooks like you need to initdb.", ControlFile-> blcksz, BLCKSZ); > But I haven't stress-tested it. From your report, it sounds like

Re: [HACKERS] 7.0.2 -> 7.0.3 problem - anyone? - Fixed!

2000-11-12 Thread Tom Lane
"Mitch Vincent" <[EMAIL PROTECTED]> writes: > It wasn't PostgreSQL, it was me of course! > Seeing as it was so long ago, I forgot that the BLCKSZ on the production > server wasn't 32k, it was 31k (for whatever reason).. When I set the BLCKSZ > lower than that and tried to start the backend it told

[HACKERS] PHPBuilder article -- Postgres vs MySQL

2000-11-12 Thread Michael Fork
Thought this may be of interest to some... http://www.phpbuilder.com/columns/tim20001112.php3 Michael Fork - CCNA - MCP - A+ Network Support - Toledo Internet Access - Toledo Ohio

Re: [HACKERS] 7.0.2 -> 7.0.3 problem - anyone? - Fixed!

2000-11-12 Thread Mitch Vincent
It wasn't PostgreSQL, it was me of course! Seeing as it was so long ago, I forgot that the BLCKSZ on the production server wasn't 32k, it was 31k (for whatever reason).. When I set the BLCKSZ lower than that and tried to start the backend it told me that the database was initialized with a BLCKSZ

Re: [HACKERS] 7.0.2 -> 7.0.3 problem - anyone?

2000-11-12 Thread Bruce Momjian
[ Charset ISO-8859-1 unsupported, converting... ] > I think I might have explained this wrong.. > > Ok, both databases had a BLCKSZ of 32k before the upgrade (in 7.0.2), one > database that I upgraded first to 7.0.3 went flawlessly, it started, I can > do every operation fine and it's BLCKSZ is 3

Re: [HACKERS] 7.0.2 -> 7.0.3 problem - anyone?

2000-11-12 Thread Mitch Vincent
I think I might have explained this wrong.. Ok, both databases had a BLCKSZ of 32k before the upgrade (in 7.0.2), one database that I upgraded first to 7.0.3 went flawlessly, it started, I can do every operation fine and it's BLCKSZ is 32k (so the BLCKSZ never changed between the installs, it is

[HACKERS] Pl/Sql Error (may be..... )

2000-11-12 Thread Vic
I attach(create language) language PL/pgSQL in PG and create test function (cut it from help ) : --ðÒÏÓÔÏ ÓËÌÅÉÔØ ÓÔÒÏËÉ × ÏÄÎÕ CREATE FUNCTION ct1(text, text) RETURNS text AS ' BEGIN RETURN $1 || $2; END; ' LANGUAGE 'plpgsql'; So that is my

Re: [HACKERS] 7.0.2 -> 7.0.3 problem - anyone?

2000-11-12 Thread Bruce Momjian
Block size can not be changes without dump/reload. If you think it worked once, you are wrong. Sorry. The page headers have to be written at the start of every block. [ Charset ISO-8859-1 unsupported, converting... ] > I realize it's Sunday night and not many people will be checking their > e

Re: [HACKERS] 7.0.2 -> 7.0.3 problem - anyone?

2000-11-12 Thread Mitch Vincent
I realize it's Sunday night and not many people will be checking their email, however I must ask one final time before I take some drastic measures (erasing the data directory and initdb 'ing, then restoring the data from last night's backup, losing an entire day's worth of data) -- does anyone ha

Re: [HACKERS] Syslog Facility Patch

2000-11-12 Thread Larry Rosenman
Ok, You guys are probably tired of me, BUT, here is another one, that adds the facility to set the program name used in syslog. (this includes the other ones). One gotcha, the parser doesn't like special characters in strings. For example, i tried to use pg-test, and if failed the parse coming

Re: [HACKERS] can't insert "³\" as varchar in7.0.2 and 7.1

2000-11-12 Thread Tatsuo Ishii
> Sorry if I post in the wrong list, but I've been tortured by the > problem for quite sometime. > > I've been tring for several combinations, say > > BACKEND FRONTEND > > MULE_INTERNAL EUC_TW > BIG5 >

Re: [HACKERS] 7.0.2 -> 7.0.3 problem

2000-11-12 Thread Mitch Vincent
By the way, what is pg_control and what does it do? -Mitch - Original Message - From: "Michael Ansley" <[EMAIL PROTECTED]> To: "'Mitch Vincent '" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, November 12, 2000 4:02 PM Subject: RE: [HACKERS] 7.0.2 -> 7.0.3 problem > You have

RE: [HACKERS] 7.0.2 -> 7.0.3 problem

2000-11-12 Thread Michael Ansley
Title: RE: [HACKERS] 7.0.2 -> 7.0.3 problem You have to dump/initdb/reload if you change the block size.  Simply recompiling is not going to work. Cheers... MikeA -Original Message- From: Mitch Vincent To: [EMAIL PROTECTED] Sent: 11-13-00 12:57 AM Subject: [HACKERS] 7.0.2 -> 7.0

[HACKERS] 7.0.2 -> 7.0.3 problem

2000-11-12 Thread Mitch Vincent
I just upgraded to 7.0.3 and tried to start the backend like /usr/local/pgsql/bin/postmaster -B 256 -o '-S 10240 -s' -D /usr/local/pgsql/data -i > /usr/local/pgsql/postgres.log 2>&1 & .. as I've done with 7.0.2, it failed to start and got this in my postgresql.log : DEBUG: Data Base System is

Re: [HACKERS] Syslog Facility Patch

2000-11-12 Thread Larry Rosenman
Here is a cleaned up patch, without the elog() and fprintf(), and some minor formatting fixups. Index: doc/src/sgml/runtime.sgml === RCS file: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/runtime.sgml,v retrieving revision 1.33

Re: [HACKERS] Syslog Facility Patch

2000-11-12 Thread Larry Rosenman
* Larry Rosenman <[EMAIL PROTECTED]> [001112 15:41]: > * Larry Rosenman <[EMAIL PROTECTED]> [001112 14:02]: > > OK, I don't like it (it just says "syntax error"), but here is an > > improved version. I also switched to strcasecmp... > In looking at this some more, it appears that *SOMETHING* is n

Re: [HACKERS] Syslog Facility Patch

2000-11-12 Thread Larry Rosenman
* Larry Rosenman <[EMAIL PROTECTED]> [001112 14:02]: > OK, I don't like it (it just says "syntax error"), but here is an > improved version. I also switched to strcasecmp... In looking at this some more, it appears that *SOMETHING* is not allowing messages from set_config_option() in /src/backend

Re: [HACKERS] Syslog Facility Patch

2000-11-12 Thread Larry Rosenman
OK, I don't like it (it just says "syntax error"), but here is an improved version. I also switched to strcasecmp... Index: doc/src/sgml/runtime.sgml === RCS file: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/runtime.sgml,v retr

Re: [HACKERS] cygwin gcc problem.

2000-11-12 Thread Joe Conway
I can't remember now where I found this, but I followed the instructions here -- http://people.freebsd.org/~kevlo/postgres/portNT.html -- to the letter just last night and was successful in getting PostgreSQL running on my W2K laptop. As mentioned below, I selected Unix file type for the CYGWIN in

Re: [HACKERS] cygwin gcc problem.

2000-11-12 Thread Gary MacDougall
Still no luck with this. I'm at a loss. Has ANYONE been able to compile PostgreSQL on Windows 2000 with the CYGWIN package? If so, I'd be glad to know what steps were taken to accomplish this. I tried Matthew's suggestions, but that didn't seem to make a difference. I'm starting to wonder now i

[HACKERS] Syslog Facility Patch

2000-11-12 Thread Larry Rosenman
Here is a patch for allowing the syslog facility to be set. Index: doc/src/sgml/runtime.sgml === RCS file: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/runtime.sgml,v retrieving revision 1.33 diff -c -r1.33 runtime.sgml *** doc/s

[HACKERS] SYSLOG/LOG_LOCAL0

2000-11-12 Thread Larry Rosenman
Any reason to NOT make the facility used (Currently hardcoded to LOG_LOCAL0) settable at runtime? (or at least compile)? Larry -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 (voice) Internet: [EMAIL PROTECTED] US Mail: 1905 Steamboat Springs Drive, Gar

Re: [HACKERS] Query caching

2000-11-12 Thread Karel Zak
On Fri, 10 Nov 2000 [EMAIL PROTECTED] wrote: > Did someone think about query costs ? Is you prepare > query like SELECT id FROM t1 WHERE type=$1 and > execute it with $1=1 and 2. For 1 there is one record > in t1 a all other have type=2. > Without caching, first query will use index, second > not

[HACKERS] [RELEASE ANNOUNCEMENT] v7.0.3 *Final* now Available

2000-11-12 Thread The Hermit Hacker
After a couple of pre-release tarballs, the PostgreSQL Developers are proud to announce v7.0.3, our most stable release yet. There have been *several* fixes in this release, from v7.0.2, but, being a minor release, there have been *no* changes that will require a dump/restore to happen ... down