Question regarding threaded mode

Поиск
Список
Период
Сортировка
Искать

Question regarding threaded mode

От:
Milla Erdee <millueradfa@yahoo.com>
Дата:
First, I appreciate PostgreSQL's extensive support for SQL and its
feature set greatly, which is why I use it, because of its extensive and
powerful features not found on some other SQL implementations and I hope
that the capabilities of it will continue to be expanded and improved.

Does PostGRESQL support or will it support a threaded server mode? Will
such a mode be available on Unix-type systems?

Also, has PostgreSQL considered adding some CLOB and BLOB types?

Updating Views

Triggers on Views

Additional Trigger Syntax (ie Oracle):


CREATE [OR REPLACE] TRIGGER 

     {BEFORE|AFTER} {INSERT|DELETE|UPDATE} ON 

     [REFERENCING [NEW AS ] [OLD AS ]]

     [FOR EACH ROW [WHEN ()]]

     

Thank you.

Re: Question regarding threaded mode

От:
Martijn van Oosterhout <kleptog@svana.org>
Дата:
Вложения:
On Fri, Feb 11, 2005 at 08:12:50PM -0500, Milla Erdee wrote:
> First, I appreciate PostgreSQL's extensive support for SQL and its
> feature set greatly, which is why I use it, because of its extensive and
> powerful features not found on some other SQL implementations and I hope
> that the capabilities of it will continue to be expanded and improved.
> 
> Does PostGRESQL support or will it support a threaded server mode? Will
> such a mode be available on Unix-type systems?

Currently no. There's no real need for it so there's not really a push
for it either.

> Also, has PostgreSQL considered adding some CLOB and BLOB types?

Has had these for ages.

> Updating Views

You can create RULEs to do this.

> Triggers on Views

What would they do?

> Additional Trigger Syntax (ie Oracle):

I'm not seeing anything there more than syntactic sugar that PostgreSQL
doesn't support, but no, it doesn't take that syntax.

Hope this helps,
-- 
Martijn van Oosterhout      http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Re: Question regarding threaded mode

От:
Richard_D_Levine@raytheon.com
Дата:
Вложения:
>> Additional Trigger Syntax (ie Oracle):

>I'm not seeing anything there more than syntactic sugar that PostgreSQL
>doesn't support, but no, it doesn't take that syntax.

Milla's syntax doesn't show that Oracle allows column level triggers.
That's the only difference I've noted.  Column triggers are nice for
efficiency, e.g. the trigger doesn't fire when a column doesn't change.  If
the trigger body is complex, you can test whether the OLD.col != NEW.col
for added efficiency in Postgres.

Rick


                                                                                                                                             
                      Martijn van Oosterhout                                                                                                 
                                  To:       Milla Erdee                                            
                      Sent by:                       cc:       pgsql-general@postgresql.org                                                  
                      pgsql-general-owner@pos        Subject:  Re: [GENERAL] Question regarding threaded mode                                
                      tgresql.org                                                                                                            
                                                                                                                                             
                                                                                                                                             
                      02/14/2005 11:02 AM                                                                                                    
                      Please respond to                                                                                                      
                      Martijn van Oosterhout                                                                                                 
                                                                                                                                             
                                                                                                                                             




On Fri, Feb 11, 2005 at 08:12:50PM -0500, Milla Erdee wrote:
> First, I appreciate PostgreSQL's extensive support for SQL and its
> feature set greatly, which is why I use it, because of its extensive and
> powerful features not found on some other SQL implementations and I hope
> that the capabilities of it will continue to be expanded and improved.
>
> Does PostGRESQL support or will it support a threaded server mode? Will
> such a mode be available on Unix-type systems?

Currently no. There's no real need for it so there's not really a push
for it either.

> Also, has PostgreSQL considered adding some CLOB and BLOB types?

Has had these for ages.

> Updating Views

You can create RULEs to do this.

> Triggers on Views

What would they do?

> Additional Trigger Syntax (ie Oracle):

I'm not seeing anything there more than syntactic sugar that PostgreSQL
doesn't support, but no, it doesn't take that syntax.

Hope this helps,
--
Martijn van Oosterhout      http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
(See attached file: attl4bbc.dat)

Re: Question regarding threaded mode

От:
Milla Erdee <millueradfa@yahoo.com>
Дата:
Martijn van Oosterhout wrote:
> On Fri, Feb 11, 2005 at 08:12:50PM -0500, Milla Erdee wrote:
> 


> 
>>Also, has PostgreSQL considered adding some CLOB and BLOB types?
> 
> 
> Has had these for ages.
> 
You have BYTEA and TEXT which fill this need. But you could add CLOB and 
BLOB types as synonyms for BYTEA and TEXT just to ease converting code 
written for other RDBMS.

> 
>>Updating Views
> 
> You can create RULEs to do this.
> 
> 
The updating view syntax in many cases might be preferred in certian 
cases and other types of syntax in other cases, and it should be up to 
the programmer to decide which is best for a certian application.. A 
certian syntax might be best for a certian case but another might be 
best for another case. By the way, Updating views is where you can 
update a table with INSERT, DELETE, UPDATE etc through a view.

> 
>>Triggers on Views
> 
> 
> What would they do?
> 
They would add additional functionality in case this kind of flexibility 
is determined to be needed. Another idea: triggers on SELECTs. Why not? 
Triggers can be useful for many more things than their original use.

> 
>>Additional Trigger Syntax (ie Oracle):
> 
> 
> I'm not seeing anything there more than syntactic sugar that PostgreSQL
> doesn't support, but no, it doesn't take that syntax.
> 

Then why not go ahead and support it, since it would seem it wouldnt be 
difficult. I dont think PostGRESQL supports INSTEAD OF triggers as well.


Generally I think that it is a good idea to follow the philosophy where 
we realise that just because a feature has no apparent benefit or use 
for us, that no one else will need it. A feature that may have no use 
for one person might be essential to another person. I believe it is 
important to not place arbitrary restrictions or restrictions based on 
personal preferences on how software can be used, for the reason I just 
stated.

Re: Question regarding threaded mode

От:
Bruno Wolff III <bruno@wolff.to>
Дата:
On Mon, Feb 14, 2005 at 15:25:15 -0500,
  Milla Erdee  wrote:
> The updating view syntax in many cases might be preferred in certian 
> cases and other types of syntax in other cases, and it should be up to 
> the programmer to decide which is best for a certian application.. A 
> certian syntax might be best for a certian case but another might be 
> best for another case. By the way, Updating views is where you can 
> update a table with INSERT, DELETE, UPDATE etc through a view.

You can create rules on a view so that you can do INSERT, DELETE or
UPDATE using a view name as a table and have changes take place.
FAQ