updategram in pg

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

updategram in pg

От:
SunWuKung <Balazs.Klein@axelero.hu>
Дата:
Is there a way to store update/insert logic in the data instead of 
writing db or application procedures to do that?

I am looking for something along the lines of MS updategrams like this:


 
  
  
       
       
  
 


Thanks for the help.
Balázs

Re: updategram in pg

От:
Jim Nasby <decibel@decibel.org>
Дата:
No, but you should be able to build something similar using a  
language that understands XML. You could then pass something like  
this to the database:

SELECT updategram.update('big-ole XML string');

If you wanted to get even more fancy, you could create a daemon that  
would accept connections as if it was a postmaster and handle in-line  
XML requests however MS does.

If you decide to go this route please consider starting a project on  
pgFoundry, as I'm sure others would find this useful.

On Mar 29, 2006, at 2:08 AM, SunWuKung wrote:

> Is there a way to store update/insert logic in the data instead of
> writing db or application procedures to do that?
>
> I am looking for something along the lines of MS updategrams like  
> this:
>
> 
>  
>   
>   
>                                 StartTime="1900-01-01 11:00:00.000"
>                         EndTime="1900-01-01 19:00:00.000"
>                         ModifiedDate="2004-01-01 00:00:00.000" />
>                                 StartTime="1900-01-01 19:00:00.000"
>                         EndTime="1900-01-01 03:00:00.000"
>                         ModifiedDate="2004-01-01 00:00:00.000" />
>   
>  
> 
>
> Thanks for the help.
> Balázs
>
> ---------------------------(end of  
> broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faq
>

--
Jim C. Nasby, Database Architect                decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"


FAQ