From: | Sergio Pili <sergiop(at)sinectis(dot)com(dot)ar> |
---|---|
To: | JanWieck(at)yahoo(dot)com, scrappy(at)hub(dot)org |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | [Fwd: PostgreSQL new commands proposal] |
Date: | 2001-10-26 23:01:53 |
Message-ID: | 3BD9EB61.4C8656AE@sinectis.com.ar |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi!
Would you please give me some comments about this subject? This proposal
was sent to you, attached to a previous mail, few weeks ago.
I'll appreciate so much your opinion, because we are using the
PostgreSQL for an important project at the University, and the
incorporation of this piece of code is contributing with some tests we
are carrying out. If you think this implementation is not correct or it
has some drawback, your suggestions will be welcome. I'll modify
everything you think is needed.
In addition, I'm developing this software in the context of my
undergraduate thesis. The inclusion of these features and their testing
is the objective of this thesis, then all your help is invaluable for
me!!
Perhaps you do not need the features I implemented in my research
project (activate/deactivate) but it is a central point for us.
Besides, if the adding of this characteristic does not produce any side
effect, I think it would be added, so it would be useful for other
users. Some other DBMSs have these mechanisms.
I'll wait for your comments. Take into account that if it is needed,
I'll re-write all parts of the code you recommend me.
Best regards.
Sergio.
>
> Hello:
>
> Here at the Universidad Nacional del Centro de la Provincia de Buenos Aires,
> we (myself as full professor and some other colleagues) are extensively using
> the rules of PostgreSQL. This mean that we are teaching using PostgreSQL and
> we are doing some research using it as platform for testing as well.
>
> Naturally we do not need to explain you how useful in many contexts the rules
> are.
>
> However we have found two minor weaknesses:
>
> A) It is related with situations where more than one rule is involved and the
> seccond one requires completion of the first one. In our sort of problems this
> happens frequently. This can be solved adding the notion of
> "disablement" of the first rule within the re-writing of the second rule when
> the first rule is not required since the knowledge of the action of the second
> rule allows it. To do this, the addition of two new commands is proposed:
> DEACTIVATE/ACTIVATE RULE.
>
> B) The lack of a transaction abortion clause. (Chapter 17 Section 5
> PostgreSQL 7.1 Programmers Guide)
> The addition of the function
>
> pg_abort_with_msg(text)
> wich can be called from a SELECT is proposed.
>
> We ask to one of our students (Sergio Pili) to develop an implementation for
> both A and B. They has been in operation since Dec 2000 in version 7.0.3.
> Lately, Sergio ported his implementation to version 7.1.3. We
> think that this update to PostgreSQL will strenght the power of the rules
> rewriting system.
>
> Attached Sergio's patch for version 7.1.3.
>
> Jorge H Doorn
Attachment | Content-Type | Size |
---|---|---|
deactivate_rule.patch.gz | application/x-gzip | 5.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Lamar Owen | 2001-10-26 23:42:53 | Re: 7.2b1 ... |
Previous Message | Tom Lane | 2001-10-26 21:36:08 | Re: [patch] helps fe-connect.c handle -EINTR more gracefully |