| From: | Paul Ramsey <pramsey(at)refractions(dot)net> |
|---|---|
| To: | Vilson farias <vilson(dot)farias(at)digitro(dot)com(dot)br> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Simulating sequences |
| Date: | 2003-08-18 15:51:56 |
| Message-ID: | 3F40F61C.3030504@refractions.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Vilson farias wrote:
> Does PostgreSQL sequences deal with these kinds performance questions? Is it
> clean, fast and secury to use sequences? Maybe I still can make up my boss
> mind about this subject if I get good arguments here to justify the use of
> sequences.
Sorry, but you just outlined a sequence replacement which is a big hunk
of PL/PgSQL! How is that not completely specific to PostgreSQL? The
PgSQL 'serial' type is close enough to other RDBMS autoincrement types
that porting to a different DB should be trivial. Porting your PL/PgSQL,
that will be hard (particularly if you decide to go to something like
MySQL, which doesn't even support procedural languages).
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey(at)refractions(dot)net
| Phone: (250) 885-0632
\_
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stephan Szabo | 2003-08-18 15:52:55 | Re: Simulating sequences |
| Previous Message | scott.marlowe | 2003-08-18 15:50:46 | Re: Manage PostgreSQL Connections |