FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » PgSQL Bug
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
PgSQL Bug [message #9438] Fri, 28 March 2003 03:14 Go to next message
Ramon is currently offline  Ramon   Belgium
Messages: 4
Registered: March 2003
Karma: 0
Junior Member
Hi

When trying to split a thread, I get an error about an invalid SQL statement.

So, say I have thread with 10 Messages, Test1 to Test10, and I split out Test5 to Test8, then I get the error message below

--------------------------------
Warning: pg_query() [function.pg-query]: Query failed: ERROR: parser: parse error at or near "," at character 250 . in /XXX/forum/index.php on line 131
(t=msg&th=31&rid=13&S=e29eaf3a378ca27ebcd7af9cbda7790c) :
Query: SELECT fud_msg.id, fud_msg.subject FROM fud_thread_view INNER JOIN fud_thread ON fud_thread_view.thread_id=fud_thread.id INNER JOIN fud_msg ON fud_thread.root_msg_id=fud_msg.id WHERE fud_thread_view.forum_id=3 AND fud_thread_view.page IN(, -1) AND fud_thread.moved_to=0 AND (fud_thread_view.page * 25 + fud_thread_view.pos) < 0 ORDER BY page DESC, pos DESC LIMIT 1
Server Version: PostgreSQL 7.3.2 on i386-portbld-freebsd4.8, compiled by GCC 2.95.4
[Referring Page] http://XXX/forum/index.php?t=split_th&rid=13&S=e29eaf3a378ca27ebcd7 af9cbda7790c&th=27
-----------------------------------
Furtheron, assume that this thread was in a Forum with (originally) 5 threads, then -- after returning to the forum --
the forum-index states that there are 6 threads in that forum.
(which is correct, because the new split-out thread should have been created) BUT when going into that forum I still see just 5.

The only remedie seems to run "Forum Consistency". Afterwards the forum correctly lists the 6 threads.

Evidently, this is rather cumbersome in a production environment.

independent remark:

FUDForum runs on a (non-production, test) P-400 system with 0.75 GB RAM, generous pgSQL cache and very low load, over domain sockets, yet typically needs around 1 sec for a page.
According to my experience PostgreSQL, while beeing considerably more stable and reliable than mySQL, should perform roughly equal ...

Thank you
Re: PgSQL Bug [message #9444 is a reply to message #9438] Fri, 28 March 2003 14:06 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Which version of FUDforum are you using?

FUDforum Core Developer
Re: PgSQL Bug [message #9453 is a reply to message #9438] Fri, 28 March 2003 16:54 Go to previous messageGo to next message
Ramon is currently offline  Ramon   Belgium
Messages: 4
Registered: March 2003
Karma: 0
Junior Member
FUDforum 2.3.8
Re: PgSQL Bug [message #9548 is a reply to message #9453] Tue, 08 April 2003 12:05 Go to previous messageGo to next message
Ramon is currently offline  Ramon   Belgium
Messages: 4
Registered: March 2003
Karma: 0
Junior Member
Should I understand the absence of any kind of further comments or advise as indicating that the FUDForum people don't know or care too much about the pgSQL backend ?

I'm bewildered. Normally -- big compliments ! -- questions seems to get answered rather quickly.

This is an important issue for me because actually I chose FUDForum for supporting _real_ SQL-servers while the others support mySQL only.

Thanks
Re: PgSQL Bug [message #9553 is a reply to message #9548] Tue, 08 April 2003 23:45 Go to previous messageGo to next message
esm2002 is currently offline  esm2002   United States
Messages: 339
Registered: May 2002
Location: Atlanta Georgia
Karma: 0
Senior Member
See the march 30 post from prottoss at http://fud.prohost.org/forum/index.php?t=tree&goto=9464&rid=177& ;S=103acb8ea6de20f18f4945599937d3ac

Potentially great software but...


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Re: PgSQL Bug [message #9638 is a reply to message #9553] Sun, 13 April 2003 15:23 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Run the consistency checker it should fix the problem.

FUDforum Core Developer
Re: PgSQL Bug [message #9770 is a reply to message #9638] Mon, 21 April 2003 00:40 Go to previous messageGo to next message
Ramon is currently offline  Ramon   Belgium
Messages: 4
Registered: March 2003
Karma: 0
Junior Member
Sorry prottoss

Nope.

Running consistency checker fixes the _symptoms_ of the problems., not the problem.

And, seriously, it's not that great to run it a couple of times day in a major forum ...
Re: PgSQL Bug [message #9928 is a reply to message #9770] Tue, 13 May 2003 13:42 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Try 2.5.0, this release has many PostgreSQL related fixed and in my tests I had not come across any bugs specific to PostgreSQL.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: edit signature
Next Topic: reset password error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 21:27:38 GMT 2024

Total time taken to generate the page: 0.02891 seconds