Re: [HACKERS] Libpq.dll Souce Code

2002-09-06 Thread Gerhard Häring
* Achmad Amin [EMAIL PROTECTED] [2002-09-05 22:54 -0700]: Dear all, I want to make library for visual basic to connect to PostgreSQL, but I have problem to get libpq.dll source code. Can somebody help me ? Download a PostgreSQL source distribution. The libpq sources are in

[HACKERS] abou the cost estimation

2002-09-06 Thread ljguo_1234
Hello, All I have read the source code /cvsroot/pgsql/src/backend/optimizer/path/costsize.c and there is a function cost_sort(...). I think the code in 464 to 465 lines must be changed to: startup_cost += npageaccesses * (1.0 + cost_nonsequential_access(1)) * 0.5; The

Re: [HACKERS] [PATCHES] Big number of unused pages as reported by VACUUM

2002-09-06 Thread Christopher Kings-Lynne
Hi Yury, This question should not be posted to -patches, changed accordingly. What happens if you go 'VACUUM VERBOSE FULL goods;'? Your on-disk files won't shrink or have unused tuples removed unless you VACUUM FULL. The problem with doing VACUUM FULL is that it totally locks the whole table

Re: [HACKERS] [PATCHES] Big number of unused pages as reported by

2002-09-06 Thread Yury Bokhoncovich
Hello! On Fri, 6 Sep 2002, Christopher Kings-Lynne wrote: This question should not be posted to -patches, changed accordingly. What happens if you go 'VACUUM VERBOSE FULL goods;'? Oh, big thanx! But 'VACUUM VERBOSE FULL goods;' didn't work, only 'VACUUM FULL VERBOSE goods;' did.:) I make a

Re: [HACKERS] Inheritance

2002-09-06 Thread Hannu Krosing
On Fri, 2002-09-06 at 07:37, Curt Sampson wrote: On 5 Sep 2002, Hannu Krosing wrote: Suppose you have a table CITIZEN with table-level constraint IS_GOOD which is defined as kills_not_others(CITIZEN). and there is table CIVIL_SERVANT (..) UNDER CITIZEN. Now you have just one table

Re: [HACKERS] [PATCHES] Big number of unused pages as reported by VACUUM

2002-09-06 Thread Christopher Kings-Lynne
I make a guess I've got this due to parallel running of a program making bulk INSERTs/UPDATEs into that table. Mmm...I need a way to avoid the big number of unused pages in such a case. LOCK TABLE? Well, I suggest doing a normal vacuum analyze ('VACUUM ANALYZE goods') after every bulk

Re: [HACKERS] [PATCHES] Big number of unused pages as reported by

2002-09-06 Thread Zeugswetter Andreas SB SD
I make a guess I've got this due to parallel running of a program making bulk INSERTs/UPDATEs into that table. Mmm...I need a way to avoid the big number of unused pages in such a case. LOCK TABLE? Only UPDATEs and DELETEs (and rolled back INSERTs) cause unused pages. The trick for other

Re: [HACKERS] Inheritance

2002-09-06 Thread Curt Sampson
On 6 Sep 2002, Hannu Krosing wrote: In most object-oriented languages (Eiffel being a notable exception, IIRC), you can't specify constraints on objects. But in a relational database, you can specify constraints on tables, and it should *never* *ever* be possible to violate those

Re: [HACKERS] contrib/tsearch

2002-09-06 Thread Oleg Bartunov
On Fri, 6 Sep 2002, Christopher Kings-Lynne wrote: There also seems to be a more complete list of english stopwords here: http://www.dcs.gla.ac.uk/idom/ir_resources/linguistic_utils/ Chris, I think we have to separate stop word list from tsearch package and supply just some defaults. The

Re: [HACKERS] contrib/tsearch

2002-09-06 Thread Oleg Bartunov
On Fri, 6 Sep 2002, Christopher Kings-Lynne wrote: Looking at the list of stopwords you sent me, Oleg, there are only about 1 out of the list of 120 stopwords that need to have all word forms added. I also don't think it'll be a maintenance problem. The reason I think this is

Re: [HACKERS] contrib/tsearch

2002-09-06 Thread Oleg Bartunov
On Fri, 6 Sep 2002, Christopher Kings-Lynne wrote: Should we check for stop words before stemming or after ? I think you should. In the first case we have to collect all forms of stop-words which is doable but difficult to maintain, in latter - we'll have current problem. Looking at

Re: [HACKERS] Inheritance

2002-09-06 Thread Hannu Krosing
On Fri, 2002-09-06 at 09:53, Curt Sampson wrote: If the language specifies that contstraints on tables are not to be violated, then don't use those constraints when you don't want them. But what _should_ i use then if i want the same business rule on most top-level types, but a changed one

Re: [HACKERS] 7.3 Beta 1 Build Error on Cygwin

2002-09-06 Thread Dave Page
Seems to build cleanly here now. Perhaps anoncvs just hadn't sync'd up when you tried Jason? Regards, Dave. -Original Message- From: Jason Tishler [mailto:[EMAIL PROTECTED]] Sent: 05 September 2002 20:38 To: Peter Eisentraut Cc: Bruce Momjian; Dave Page; pgsql-hackers;

[HACKERS] v7.3beta1 Packaged and Released ...

2002-09-06 Thread Marc G. Fournier
Well, I swear, this is the first release we've actually kept on scheduale with, as far as going into beta is concerned ... We've just packaged up and released v7.3beta1 for broader testing ... and this is a big one as far as changes are concerned. Major changes in this release: Schemas

Re: [HACKERS] abou the cost estimation

2002-09-06 Thread Tom Lane
ljguo_1234 [EMAIL PROTECTED] writes: I have read the source code /cvsroot/pgsql/src/backend/optimizer/path/costsize.c and there is a function cost_sort(...). I think the code in 464 to 465 lines must be changed to: startup_cost += npageaccesses * (1.0 +

Re: [HACKERS] Inheritance

2002-09-06 Thread Greg Copeland
On Thu, 2002-09-05 at 15:51, Hannu Krosing wrote: On Fri, 2002-09-06 at 03:19, Greg Copeland wrote: What about the concept of columns being public or private? That is, certain columns may not be inherited by a child? Any thought to such a concept? Perhaps different types of table

Re: [HACKERS] 7.3 Beta 1 Build Error on Cygwin

2002-09-06 Thread Jason Tishler
Peter, On Fri, Sep 06, 2002 at 12:54:13PM +0100, Dave Page wrote: Seems to build cleanly here now. And here (and now) too. Perhaps anoncvs just hadn't sync'd up when you tried Jason? I guess so -- very strange... Anyway, sorry (again) for the noise and thanks for fixing the Cygwin build.

Re: [HACKERS] Inheritance

2002-09-06 Thread Greg Copeland
On Fri, 2002-09-06 at 07:53, Hannu Krosing wrote: On Fri, 2002-09-06 at 09:53, Curt Sampson wrote: This looks like a classic case of incorrect modelling to me. Does the good itself change when it becomes a campaign_good? No. The price changes, but that's obviously not an integral part of

Re: [HACKERS] Foreign keys in pg_dump

2002-09-06 Thread Rod Taylor
On Fri, 2002-09-06 at 01:19, Christopher Kings-Lynne wrote: OK, The argument about using ALTER TABLE/ADD FOREIGN KEY in dumps was that it caused an actual check of the data in the table, right? This was going to be much slower than using CREATE CONSTRAINT TRIGGER. So, why can't we do

Re: [HACKERS] Inheritance

2002-09-06 Thread cbbrowne
On Fri, 2002-09-06 at 07:37, Curt Sampson wrote: On 5 Sep 2002, Hannu Krosing wrote: Suppose you have a table CITIZEN with table-level constraint IS_GOOD which is defined as kills_not_others(CITIZEN). and there is table CIVIL_SERVANT (..) UNDER CITIZEN. Now you have just one table

Re: [HACKERS] beta1 packaged

2002-09-06 Thread Giles Lean
Tom Lane writes: Rod Taylor [EMAIL PROTECTED] writes: SunOS control.shared2 5.7 Generic_106541-20 sun4u sparc SUNW,Ultra-5_10 shows an error in ALTER TABLE tests: ALTER TABLE FKTABLE ADD FOREIGN KEY(ftest1) references pktable(ptest1); NOTICE: ALTER TABLE will create implicit

Re: [HACKERS] PL/Perl?

2002-09-06 Thread Olivier PRENANT
Well I spent half a day and half a night, pgsql compiles ok for me. However I'm still figuring why I have majodormo probs... So I went back for now. Regards On 5 Sep 2002, Larry Rosenman wrote: Date: 05 Sep 2002 15:16:38 -0500 From: Larry Rosenman [EMAIL PROTECTED] To: Tom Lane [EMAIL

Re: [HACKERS] Inheritance

2002-09-06 Thread Greg Copeland
On Fri, 2002-09-06 at 08:57, [EMAIL PROTECTED] wrote: On Fri, 2002-09-06 at 07:37, Curt Sampson wrote: On 5 Sep 2002, Hannu Krosing wrote: To elaborate on Gregs example if you have table GOODS and under it a table CAMPAIGN_GOODS then you may place a general overridable constraint

Re: [HACKERS] Inheritance

2002-09-06 Thread cbbrowne
Oops! [EMAIL PROTECTED] (Greg Copeland) was seen spray-painting on a wall: --=-eu74lKXry3SVx8eZ/qBD Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2002-09-06 at 08:57, [EMAIL PROTECTED] wrote: On Fri, 2002-09-06 at 07:37, Curt Sampson wrote: On 5 Sep 2002,

Re: [HACKERS] Inheritance

2002-09-06 Thread elein
There was a comment earlier that was not really addressed. What can you do with table inheritance that you can not do with a relational implementation? Or what would work *better* as inheritance? (you define better) This is a genuine question, not a snarky comment. I really want to know.

[HACKERS] Rule updates and PQcmdstatus() issue

2002-09-06 Thread Steve Howe
Hello all, PostgreSQL *still* has a bug where PQcmdStatus() won't return the number of rows updated. But that is essential for applications, since without it of course we don't know if the updates/delete/insert commands succeded. Even worst, on interfaces like Delphi/dbExpress the program will

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-06 Thread snpe
Hello Barry, JDBC driver must find autocommit (off or on) and set autoCommit field when open connection. regards On Friday 06 September 2002 06:52 pm, Barry Lind wrote: Haris, You can't use jdbc (and probably most other postgres clients) with autocommit in postgresql.conf turned off.

Re: [HACKERS] Rule updates and PQcmdstatus() issue

2002-09-06 Thread Bruce Momjian
Steve Howe wrote: Hello all, PostgreSQL *still* has a bug where PQcmdStatus() won't return the number of rows updated. But that is essential for applications, since without it of course we don't know if the updates/delete/insert commands succeded. Even worst, on interfaces like

Re: [HACKERS] Inheritance

2002-09-06 Thread Greg Copeland
On Fri, 2002-09-06 at 11:05, [EMAIL PROTECTED] wrote: Oops! [EMAIL PROTECTED] (Greg Copeland) was seen spray-painting on a wall: That's a pretty forcible constraint. :-). =20 Is there something broken with your mailer? It's reformatting quotes rather horribly... Hmm...not that I know

Re: [HACKERS] beta1 packaged

2002-09-06 Thread Peter Eisentraut
Marc G. Fournier writes: Actually, I just asked for the split, I think it was peter that actually did it ... :) I recall that you thought of the split in order to save bandwidth for those who didn't need everything. It was expressedly intended that the -base tarball was usable by itself and

Re: [HACKERS] Rule updates and PQcmdstatus() issue

2002-09-06 Thread Steve Howe
Hello Bruce, Friday, September 6, 2002, 3:22:13 PM, you wrote: BM Steve Howe wrote: Hello all, PostgreSQL *still* has a bug where PQcmdStatus() won't return the number of rows updated. But that is essential for applications, since without it of course we don't know if the

[HACKERS] Interesting results using new prepared statements

2002-09-06 Thread Barry Lind
In testing the new 7.3 prepared statement functionality I have come across some findings that I cannot explain. I was testing using PREPARE for a fairly complex sql statement that gets used frequently in my applicaition. I used the timing information from: show_parser_stats = true

[HACKERS] problem with new autocommit config parameter and jdbc

2002-09-06 Thread Barry Lind
Haris, You can't use jdbc (and probably most other postgres clients) with autocommit in postgresql.conf turned off. Hackers, How should client interfaces handle this new autocommit feature? Is it best to just issue a set at the beginning of the connection to ensure that it is always on?

Re: [HACKERS] Rule updates and PQcmdstatus() issue

2002-09-06 Thread Bruce Momjian
I am not any happier about it than you are. Your report is good because it is the first case where returning the wrong value actually breaks software. You may be able to justify adding a fix during beta by saying it is a bug fix. Of course, someone is going to have to generate a patch and

Re: [HACKERS] problem with new autocommit config parameter and jdbc

2002-09-06 Thread Bruce Momjian
Barry Lind wrote: Haris, You can't use jdbc (and probably most other postgres clients) with autocommit in postgresql.conf turned off. Hackers, How should client interfaces handle this new autocommit feature? Is it best to just issue a set at the beginning of the connection to ensure

Re: [HACKERS] Rule updates and PQcmdstatus() issue

2002-09-06 Thread Steve Howe
Hello Bruce, Friday, September 6, 2002, 9:52:18 PM, you wrote: BM I am not any happier about it than you are. Your report is good because BM it is the first case where returning the wrong value actually breaks BM software. You may be able to justify adding a fix during beta by saying BM it

Re: [HACKERS] Rule updates and PQcmdstatus() issue

2002-09-06 Thread Steve Howe
Hello Bruce, Friday, September 6, 2002, 10:58:13 PM, you wrote: BM Well, there was a big discussion, and I did bring up the issue in early BM August to see if I could get a resolution to it and was told no BM conclusion could be made. BM I suggest you read the TODO detail on the item and make