pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chad N. Tindel <chad@tindel.net>
To: scott.marlowe <scott.marlowe@ihs.com>
Cc: pgsql-docs@postgresql.org
Subject: Re: Mysql -> Postgresql pitfalls
Date: Fri, 1 Aug 2003 16:51:11 -0400
Message-ID: <20030801205110.GA63709@calma.pair.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0308011426280.30340-100000@css120.ihs.com>
References: <20030801163555.GA32496@calma.pair.com>
	<Pine.LNX.4.33.0308011426280.30340-100000@css120.ihs.com>

> > Excellent!  That is exactly what I'm talking about.
> > 
> > BTW, the "my2pg.pl" link is a dead link.
> 
> This is probably something that could be codified a bit here in the news 
> group.
> 
> I'd say the pitfalls I'm aware of are:
> 
> autoincrement fields -> sequences

Yes.  The documentation very clearly states using sequences instead of 
auto-increment, but it doesn't make it clear that inserting the id's into
data by hand doesn't cause the sequence to be auto-matically incremented.  It'd
be nice of postgres had a way to trigger an update of the sequence value after
every insert containing an id clumn.

> not being able to run postgresql as root (a good thing TM)

<RANT>As a programmer, I personally would never write code that kept people from
running things as root.  I mean, what is the point?  If an administrator
wants to run postgresql or apache as root, why shouldn't they be allowed
to make that conscious decision for themselves?  As it is, you have to recompile
apache with some BIG_SECURITY_HOLE defined in order to run as root, which means
you can't just use the out of the box apache rpm.  Its so stupid to write
*extra* code that keeps people from doing something that isn't even 
fundamentally incorrect.</RANT>

All that being said, I don't think it causes too big of a problem for postgres
installations.

Chad



view thread (26+ messages)  latest in thread

Message-ID: <20030801205110.GA63709@calma.pair.com>
Permalink:  ../20030801205110.GA63709@calma.pair.com/
Also on:    postgresql.org/message-id/20030801205110.GA63709@calma.pair.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: chad@tindel.net, scott.marlowe@ihs.com
  Subject: Re: Mysql -> Postgresql pitfalls
  In-Reply-To: <20030801205110.GA63709@calma.pair.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox