Re: [HACKERS] pg_autovacuum Win32 service patch #2

2004-05-14 Thread Dave Page
-Original Message- From: Matthew T. O'Connor [mailto:[EMAIL PROTECTED] Sent: 13 May 2004 21:40 To: Dave Page Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [HACKERS] pg_autovacuum Win32 service patch #2 Anyway, not having looked at this at all, how will this be

Re: [HACKERS] pg_begintypend

2004-05-14 Thread Gaetano Mendola
Tom Lane wrote: Gaetano Mendola [EMAIL PROTECTED] writes: which library I have to link in order to have the symbol pg_begintypsend ? I think you want pq_begintypsend. Consider paying more attention to unknown-function warnings from your compiler. I had no warning at all, I think I have to

Re: [HACKERS] relcache refcount

2004-05-14 Thread Zeugswetter Andreas SB SD
BTW, what are your plans for state saving/reversion for the lock manager and buffer manager? The lock state, in particular, makes these other problems look trivial by comparison. Why can't we keep all locks until main tx end ? Locks are not self conflicting are they ? So the only reason to

Re: [HACKERS] [pgsql-hackers-win32] Sync vs. fsync during

2004-05-14 Thread pgsql
Greg Stark wrote: Jan Wieck [EMAIL PROTECTED] writes: The whole sync() vs. fsync() discussion is in my opinion nonsense at this point. Without the ability to limit the amount of files to a reasonable number, by employing tablespaces in the form of larger container files, the risk of

Re: [HACKERS] relcache refcount

2004-05-14 Thread Tom Lane
Zeugswetter Andreas SB SD [EMAIL PROTECTED] writes: Why can't we keep all locks until main tx end ? For committed subtransactions we have to do that, yes, but for aborted subtransactions we must release. Otherwise you can't implement a retry loop around a potentially-deadlocking operation. (I

Re: [HACKERS] Bogus permissions display in 7.4

2004-05-14 Thread Fabien COELHO
Guess this means I have to tweak my ACL parser in phpPgAdmin. If you could do something to make that less of a NIGHTMARE, i'd be all ears :P 1. Make it easy to convert an array to a rowset 2. Fabien's accessor functions? Would they help? Sure. I needed these functions to convert acl array

[HACKERS] invalid type internal size -1

2004-05-14 Thread Gaetano Mendola
I all, I'm tryng to declare my email type. I think I have to do it in this way: create type email ( INPUT = email_in, OUTPUT = email_out, RECEIVE = email_recv, SEND = email_send, INTERNALLENGTH = VARIABLE,

Re: [HACKERS] Bogus permissions display in 7.4

2004-05-14 Thread Tom Lane
I wrote: I've been thinking more about this, and realizing that there are more implications than I first thought. Specifically, we have to consider how any hacking we do here will affect recursive_revoke(). After further consideration I think that at least part of the problem here is that

Re: [HACKERS] invalid type internal size -1

2004-05-14 Thread Tom Lane
Gaetano Mendola [EMAIL PROTECTED] writes: create type email ( INPUT = email_in, OUTPUT = email_out, RECEIVE = email_recv, SEND = email_send, INTERNALLENGTH = VARIABLE, PASSEDBYVALUE = f,

Re: [HACKERS] invalid type internal size -1

2004-05-14 Thread Tom Lane
Gaetano Mendola [EMAIL PROTECTED] writes: create type email ( INPUT = email_in, OUTPUT = email_out, RECEIVE = email_recv, SEND = email_send, INTERNALLENGTH = VARIABLE, PASSEDBYVALUE = f,

Re: [HACKERS] Bogus permissions display in 7.4

2004-05-14 Thread Bruce Momjian
Basically our whole API of communicating ACL information to the user is poor. Look at psql \z: test= create table test(x int); CREATE TABLE test= grant all on test to public; GRANT test= \z test Access privileges for database

Re: [HACKERS] Bogus permissions display in 7.4

2004-05-14 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: Basically our whole API of communicating ACL information to the user is poor. Look at psql \z: Well, if you don't like that, there's always the spec's way: regression= select * from information_schema.table_privileges where table_name = 'mytable';

Re: [HACKERS] database errors

2004-05-14 Thread Simon Riggs
On Fri, 2004-05-14 at 02:00, Tom Lane wrote: Michael Brusser [EMAIL PROTECTED] writes: It looks that No such file or directory followed by the abort signal resulted from manually removing logs. pg_resetxlog took care of this, but other problems persisted. pg_dump: ERROR: XLogFlush:

[HACKERS] Feature freeze approaching

2004-05-14 Thread Bruce Momjian
We have a feature freeze scheduled for either June 1 or whenever a major feature is completed, whichever is last. For Win32, we have open: fsync (Tom) relative installs (Bruce) timezone (Magnus) There is a company that wants to fund some PostgreSQL features but I told

[HACKERS] create type: recv and send function

2004-05-14 Thread Gaetano Mendola
Hi all, what is the purpose of two function send and receive when a new type is defined ? When these two functions are called ? Regards Gaetano Mendola ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate

Re: [HACKERS] relcache refcount

2004-05-14 Thread Alvaro Herrera
On Thu, May 13, 2004 at 09:43:42AM -0400, Tom Lane wrote: Alvaro Herrera [EMAIL PROTECTED] writes: I'm stuck trying to figure out how to decrease reference counting for relcache entries at subtransaction abort. Initially I thought I could just drop them all to zero, Nope, you can't.

Re: [HACKERS] Log rotation

2004-05-14 Thread Fernando Nasser
Lamar Owen wrote: Anyway, Syslog is not an option for us. We need flat files. Ok, riddle me this: If I have PostgreSQL set to log to syslog facility LOCAL0, and a local0.none on /var/log/messages and local0.* to /var/log/pgsql (assuming only one postmaster, unfortunately) then you get a flat

Re: [HACKERS] relcache refcount

2004-05-14 Thread Bruce Momjian
Alvaro Herrera wrote: PS: Either the list server is getting very slow or it has started to lose mail. I asked yesterday whether it was OK to copy the hash but apparently the mail didn't make it to the list. Is there something happening? Not sure. I can confirm I never saw that email. --

Re: [HACKERS] database errors

2004-05-14 Thread Michael Brusser
-Original Message- From: [EMAIL PROTECTED] pg_dump: ERROR: XLogFlush: request 0/A971020 is not satisfied --- flushed only to 0/550 ... lost synchronization with server, resetting connection Okay, you have a page with an LSN of A971020 which is past end of XLOG

Re: [HACKERS] Rough draft for Unicode-aware

2004-05-14 Thread Markus Bertheau
, 13.05.2004, 04:42, Tom Lane : But if you have a platform that has mbstowcs and friends, please try it and let me know about any portability gotchas you see. I can't test it because with a clean 7.4.2 with the patch applied I get [EMAIL PROTECTED] postgresql-7.4.2]$ LANG=C make install

Re: [HACKERS] Feature freeze approaching

2004-05-14 Thread Marc G. Fournier
Just to give some more incentive to work at June 1st ... Native Win32 would be *really* nice to showcase at OSCON in July, if we could pull off a relatively clean/strong beta period ... On Fri, 14 May 2004, Bruce Momjian wrote: We have a feature freeze scheduled for either June 1 or whenever a

Re: [HACKERS] Feature freeze approaching

2004-05-14 Thread Andrew Dunstan
Marc G. Fournier wrote: Just to give some more incentive to work at June 1st ... Native Win32 would be *really* nice to showcase at OSCON in July, if we could pull off a relatively clean/strong beta period ... Especially if we have the service code and a spiffy installer ... On Fri, 14 May 2004,

[HACKERS] CatCache state reversing

2004-05-14 Thread Alvaro Herrera
Hackers, In looking at the CatCache code it's clear to me that there's no point in copying the whole structure like I did to the Relcache; it's much bigger, and there's not much that can change inside a subtransaction: CatCacheRemoveCTup can't be called, because ReleaseCatCache will not be called

Re: [HACKERS] relcache refcount

2004-05-14 Thread Tom Lane
Alvaro Herrera [EMAIL PROTECTED] writes: Ok, I created a function to copy a hash table (from dynahash). So now at subtransaction start the RelationIdCache and RelationSysNameCache hash tables are copied, and if the subtransaction aborts the previous hash tables are restored. I don't think

Re: [HACKERS] database errors

2004-05-14 Thread Tom Lane
Simon Riggs [EMAIL PROTECTED] writes: On Fri, 2004-05-14 at 02:00, Tom Lane wrote: Okay, you have a page with an LSN of A971020 which is past end of XLOG (550). You may have created this problem for yourself by doing pg_resetxlog with poorly chosen parameters. Is there a way to know

Re: [HACKERS] relcache refcount

2004-05-14 Thread Alvaro Herrera
On Fri, May 14, 2004 at 11:21:42PM -0400, Tom Lane wrote: Alvaro Herrera [EMAIL PROTECTED] writes: Ok, I created a function to copy a hash table (from dynahash). So now at subtransaction start the RelationIdCache and RelationSysNameCache hash tables are copied, and if the subtransaction

Re: [HACKERS] create type: recv and send function

2004-05-14 Thread Tom Lane
Gaetano Mendola [EMAIL PROTECTED] writes: what is the purpose of two function send and receive when a new type is defined ? Binary I/O handling. I'm quite sure this is in the docs... regards, tom lane ---(end of

[HACKERS] new version of contrib/pg_trgm is available !

2004-05-14 Thread Oleg Bartunov
Hello, new version of contrib/pg_trgm (former trgm) is available for download from http://www.sai.msu.su/~megera/postgres/gist/pg_trgm One bug was fixed, upgrade is simple, no index rebuilding is required. contrib/pg_trgm module provides fuzzy search with GiST index support based on trigram

[HACKERS] new version of tsearch2 introduction is available

2004-05-14 Thread Oleg Bartunov
Hello, Andrew Kopciuch has submit new version of his Introduction to tsearch2, which is available from http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/docs/tsearch-V2-intro.html He added explanation of how to backup and restore databases that features tsearch2. Regards,

Re: [HACKERS] MERGE-esque Functionallity (was: Adding MERGE to the TODO list (resend with subject))

2004-05-14 Thread Mike Rylander
On Tuesday 11 May 2004 09:44 am, Bruce Momjian wrote: [snip] Bruce Momjian kirjutas E, 10.05.2004 kell 06:58: Added to TODO: * Add MERGE command that does UPDATE, or on failure, INSERT [snip] Hello all. I have been lurking here for a bit and the MERGE topic (on