Re: [BUGS] BUG #3767: tsearch2 index creation fatal crash

2007-11-20 Thread Tom Lane
>> I'm not sure that putting in to_tsvector calls there would be an >> improvement, though, since at that point we haven't introduced >> to_tsvector. Uh ... wait a moment ... stop the presses. Thomas is looking at beta1 documentation. CVS HEAD handles this a bit better I think: http://developer.

Re: [BUGS] BUG #3767: tsearch2 index creation fatal crash

2007-11-20 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> I'm not sure that putting in to_tsvector calls there would be an >> improvement, though, since at that point we haven't introduced >> to_tsvector. >> >> Thoughts anyone? > Yep, I saw that chicken and egg problem in the docs when I was

Re: [BUGS] BUG #3767: tsearch2 index creation fatal crash

2007-11-20 Thread Bruce Momjian
Tom Lane wrote: > "Thomas H." <[EMAIL PROTECTED]> writes: > > i saw my mistake. i misinterpreted the examples to show the possibility > > to convert *any* text by using casting to tsvector as an alternative to > > using to_tsvector :) > > Yeah, the examples in section 12.1.2 are not actually goo

Re: [BUGS] BUG #3767: tsearch2 index creation fatal crash

2007-11-20 Thread Tom Lane
"Thomas H." <[EMAIL PROTECTED]> writes: > i saw my mistake. i misinterpreted the examples to show the possibility > to convert *any* text by using casting to tsvector as an alternative to > using to_tsvector :) Yeah, the examples in section 12.1.2 are not actually good practice: both sides of th

Re: [BUGS] BUG #3767: tsearch2 index creation fatal crash

2007-11-20 Thread Thomas H.
there are more problems with tsvectors. this also fails: SELECT ' just a test: 123 '::tsvector; ERROR: syntax error in tsvector: " just a test: 123 " That's not a bug; your input isn't valid tsvector syntax. ok. after re-reading page http://www.postgresql.org/docs/8.3/static/textsearch-i

Re: [BUGS] BUG #3767: tsearch2 index creation fatal crash

2007-11-20 Thread Tom Lane
"Thomas H." <[EMAIL PROTECTED]> writes: > there are more problems with tsvectors. this also fails: > SELECT ' just a test: 123 '::tsvector; > ERROR: syntax error in tsvector: " just a test: 123 " That's not a bug; your input isn't valid tsvector syntax. regards, tom lane

Re: [BUGS] BUG #3766: tsearch2 index creation error

2007-11-20 Thread Tom Lane
"Thomas Haegi" <[EMAIL PROTECTED]> writes: > Operating system: Windows 2003 > CREATE INDEX posts_fts_idx ON forum.posts USING gin(to_tsvector('english', > p_msg_clean)); > ERROR: translation from wchar_t to server encoding failed: No error Hmm. That error message is close to some code that is

Re: [BUGS] BUG #3767: tsearch2 index creation fatal crash

2007-11-20 Thread Thomas H.
the reported problem below can be reproduced by using this simple query straight from the documentation: SELECT to_tsvector('a fat cat sat on a mat and ate a fat rat'); Works for me: u=# set default_text_search_config = 'pg_catalog.german'; SET u=# SELECT to_tsvector('a fat cat sat on a mat

Re: [BUGS] BUG #3767: tsearch2 index creation fatal crash

2007-11-20 Thread Tom Lane
"Thomas H." <[EMAIL PROTECTED]> writes: > the reported problem below can be reproduced by using this simple query > straight from the documentation: > SELECT to_tsvector('a fat cat sat on a mat and ate a fat rat'); Works for me: u=# set default_text_search_config = 'pg_catalog.german'; SET u=#

Re: [BUGS] BUG #3767: tsearch2 index creation fatal crash

2007-11-20 Thread Thomas H.
the reported problem below can be reproduced by using this simple query straight from the documentation: SELECT to_tsvector('a fat cat sat on a mat and ate a fat rat'); --> postgres.exe dies instantly, with the logs being the same as in the bugreport. interestingly using ::tsvector (which

[BUGS] BUG #3767: tsearch2 index creation fatal crash

2007-11-20 Thread Thomas Haegi
The following bug has been logged online: Bug reference: 3767 Logged by: Thomas Haegi Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3b3 Operating system: Windows 2003 Description:tsearch2 index creation fatal crash Details: the previously reported problem g

[BUGS] BUG #3766: tsearch2 index creation error

2007-11-20 Thread Thomas Haegi
The following bug has been logged online: Bug reference: 3766 Logged by: Thomas Haegi Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3b3 Operating system: Windows 2003 Description:tsearch2 index creation error Details: when following the documentation (http:

Re: [BUGS] BUG #3765: strange results for bit string hex notation cast to bit

2007-11-20 Thread Kevin Grittner
>>> On Tue, Nov 20, 2007 at 3:47 PM, in message <[EMAIL PROTECTED]>, Cade Cairns <[EMAIL PROTECTED]> wrote: > On 20-Nov-07, at 2:42 PM, Heikki Linnakangas wrote: >> >> http://www.postgresql.org/docs/8.1/interactive/datatype-bit.html >> >> "Note: If one explicitly casts a bit-string value to bit(

Re: [BUGS] BUG #3765: strange results for bit string hex notation cast to bit

2007-11-20 Thread Cade Cairns
Can anyone explain why this is the case? On 20-Nov-07, at 2:42 PM, Heikki Linnakangas wrote: Cade Cairns wrote: When casting a bit string constant using hexadecimal notation to a longer bit string, the result is padded with 0's on the right. This will result in inconsistent/useless results

Re: [BUGS] BUG #3765: strange results for bit string hex notation cast to bit

2007-11-20 Thread Heikki Linnakangas
Cade Cairns wrote: When casting a bit string constant using hexadecimal notation to a longer bit string, the result is padded with 0's on the right. This will result in inconsistent/useless results: test=# select x'ff'::integer; int4 -- 255 (1 row) test=# select x'ff'::bit(16)::integer

[BUGS] BUG #3765: strange results for bit string hex notation cast to bit

2007-11-20 Thread Cade Cairns
The following bug has been logged online: Bug reference: 3765 Logged by: Cade Cairns Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1.10 Operating system: Mac OS X 10.5.1 Description:strange results for bit string hex notation cast to bit Details: When casti

Re: [BUGS] BUG #3764: Update count returns zero for a view with 'on update' rules when criteria contains updatable field

2007-11-20 Thread Tom Lane
"Eugene M. Hutorny" <[EMAIL PROTECTED]> writes: > I noticed strange behaviour of update statements issued to a view with an > 'on update' rule when the where criterion contains the field being updated. This isn't a bug --- once the first update is performed, the visible view contents change and so

Re: [BUGS] BUG #3764: Update count returns zero for a view with 'on update' rules when criteria contains updatable field

2007-11-20 Thread Peter Eisentraut
Am Dienstag, 20. November 2007 schrieb Eugene M. Hutorny: > Description:Update count returns zero for a view with 'on update' > rules when criteria contains updatable field This is known and documented. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---

Re: [BUGS] Start up error

2007-11-20 Thread Tom Lane
"Hussain Jawad-FXRM43" <[EMAIL PROTECTED]> writes: > 2)There are several postgresql process running after a failed > restart.Below are the proccesess > ps -ef|grep post > root 730 30758 0 12:22 pts/200:00:00 grep post > postgres 2700 15927 73 12:00 ?00:16:15 postgres: cscti c

[BUGS] BUG #3764: Update count returns zero for a view with 'on update' rules when criteria contains updatable field

2007-11-20 Thread Eugene M. Hutorny
The following bug has been logged online: Bug reference: 3764 Logged by: Eugene M. Hutorny Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.4 Operating system: Windows 2000 Description:Update count returns zero for a view with 'on update' rules when criteria c

Re: [BUGS] BUG #3762: Inherited serials change on dump/restore

2007-11-20 Thread Tom Lane
"Cstdenis" <[EMAIL PROTECTED]> writes: > When I do a dump and restore of my database my serials change. This appears to be the same bug reported and fixed about two weeks ago. http://archives.postgresql.org/pgsql-committers/2007-10/msg00447.php http://archives.postgresql.org/pgsql-committers/2007

Re: [BUGS] BUG #3752: query yields "could not find block containing chunk", then server crashes

2007-11-20 Thread Mike Charnoky
Just forwarding this info along as Zdenek requested... Turns out this problem is not a bug in pg8.3, it was a problem with our custom data type. I have since dropped the custom data type and am now using standard pg float4 arrays. Did the dump and restore, and our app works just fine, no crash w

Re: [BUGS] BUG #3763: crash after create table with primary keydefined

2007-11-20 Thread admin
Dnia Wt Listopada 20 2007, 15:02, Zdenek Kotala napisał(a): > [EMAIL PROTECTED] wrote: >> Dnia Wt Listopada 20 2007, 14:20, Simon Riggs napisał(a): >>> On Tue, 2007-11-20 at 11:46 +, Heikki Linnakangas wrote: >> In logs after this: >> Nov 20 11:02:04 www postgres[32757]: [4-1] wolni>NO

Re: [BUGS] BUG #3763: crash after create table with primary keydefined

2007-11-20 Thread Heikki Linnakangas
[EMAIL PROTECTED] wrote: Dnia Wt Listopada 20 2007, 12:46, Heikki Linnakangas napisał(a): Simon Riggs wrote: On Tue, 2007-11-20 at 10:12 +, migo wrote: => CREATE TABLE phpbb_acl_roles_data ( role_id INT4 DEFAULT '0' NOT NULL CHECK (role_id >= 0), auth_option_id INT4 DEFAULT '0' NOT NULL C

Re: [BUGS] BUG #3763: crash after create table with primary keydefined

2007-11-20 Thread Zdenek Kotala
[EMAIL PROTECTED] wrote: Dnia Wt Listopada 20 2007, 14:20, Simon Riggs napisał(a): On Tue, 2007-11-20 at 11:46 +, Heikki Linnakangas wrote: In logs after this: Nov 20 11:02:04 www postgres[32757]: [4-1] wolni>NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "phpbb_acl_roles_

Re: [BUGS] BUG #3763: crash after create table with primary keydefined

2007-11-20 Thread admin
Dnia Wt Listopada 20 2007, 14:20, Simon Riggs napisał(a): > On Tue, 2007-11-20 at 11:46 +, Heikki Linnakangas wrote: >> >> In logs after this: >> >> Nov 20 11:02:04 www postgres[32757]: [4-1] wolni>NOTICE: CREATE >> TABLE / >> >> PRIMARY KEY will create implicit index "phpbb_acl_roles_data_pk

Re: [BUGS] BUG #3763: crash after create table with primary keydefined

2007-11-20 Thread Simon Riggs
On Tue, 2007-11-20 at 11:46 +, Heikki Linnakangas wrote: > >> In logs after this: > >> Nov 20 11:02:04 www postgres[32757]: [4-1] wolni>NOTICE: CREATE TABLE / > >> PRIMARY KEY will create implicit index "phpbb_acl_roles_data_pkey" for > >> table > >> Nov 20 11:02:04 www postgres[32731]: [2-1]

Re: [BUGS] BUG #3763: crash after create table with primary keydefined

2007-11-20 Thread admin
Dnia Wt Listopada 20 2007, 12:46, Heikki Linnakangas napisał(a): > Simon Riggs wrote: >> On Tue, 2007-11-20 at 10:12 +, migo wrote: >>> => CREATE TABLE phpbb_acl_roles_data ( role_id INT4 DEFAULT '0' NOT NULL >>> CHECK (role_id >= 0), auth_option_id INT4 DEFAULT '0' NOT NULL CHECK (auth_option

Re: [BUGS] BUG #3763: crash after create table with primary key defined

2007-11-20 Thread admin
Dnia Wt Listopada 20 2007, 12:12, Simon Riggs napisał(a): > On Tue, 2007-11-20 at 10:12 +, migo wrote: >> The following bug has been logged online: >> >> Bug reference: 3763 >> Logged by: migo >> Email address: [EMAIL PROTECTED] >> PostgreSQL version: 8.2.4 >> Operating syst

Re: [BUGS] BUG #3763: crash after create table with primary keydefined

2007-11-20 Thread Heikki Linnakangas
Simon Riggs wrote: On Tue, 2007-11-20 at 10:12 +, migo wrote: => CREATE TABLE phpbb_acl_roles_data ( role_id INT4 DEFAULT '0' NOT NULL CHECK (role_id >= 0), auth_option_id INT4 DEFAULT '0' NOT NULL CHECK (auth_option_id >= 0), auth_setting INT2 DEFAULT '0' NOT NULL, PRIMARY KEY (role_id, au

Re: [BUGS] BUG #3763: crash after create table with primary key defined

2007-11-20 Thread Simon Riggs
On Tue, 2007-11-20 at 10:12 +, migo wrote: > The following bug has been logged online: > > Bug reference: 3763 > Logged by: migo > Email address: [EMAIL PROTECTED] > PostgreSQL version: 8.2.4 > Operating system: Gentoo > Description:crash after create table with pr

[BUGS] BUG #3763: crash after create table with primary key defined

2007-11-20 Thread migo
The following bug has been logged online: Bug reference: 3763 Logged by: migo Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.4 Operating system: Gentoo Description:crash after create table with primary key defined Details: On psql console: => CREATE TABL

[BUGS] BUG #3762: Inherited serials change on dump/restore

2007-11-20 Thread Cstdenis
The following bug has been logged online: Bug reference: 3762 Logged by: Cstdenis Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.5/8.3beta2 Operating system: FreeBSD 6.1 Description:Inherited serials change on dump/restore Details: Setup -- Source: Ser

Re: [BUGS] BUG #3760: Comment on restore database

2007-11-20 Thread Simon Riggs
On Mon, 2007-11-19 at 18:38 -0500, Tom Lane wrote: > Simon Riggs <[EMAIL PROTECTED]> writes: > > Reason to do this now: Perf Tips have been changed for 8.3 to recommend > > using --single-transaction when restoring pg_dumps, because of fast COPY > > enhancement. Allowing this to cause an error will