Received: from oscar.eng.cv.net (oscar.eng.cv.net [167.206.9.141]) by postgresql.org (Postfix) with ESMTP id 6E9834750F5 for ; Mon, 22 Jul 2002 19:15:00 -0400 (EDT) Received: from oscar.eng.cv.net (localhost [127.0.0.1]) by oscar.eng.cv.net (8.12.5/8.12.5) with ESMTP id g6MN7wX0011546 for ; Mon, 22 Jul 2002 19:07:58 -0400 (EDT) (envelope-from marc@oscar.eng.cv.net) Received: (from marc@localhost) by oscar.eng.cv.net (8.12.5/8.12.5/Submit) id g6MN7sEb011545 for pgsql-sql@postgresql.org; Mon, 22 Jul 2002 19:07:54 -0400 (EDT) Date: Mon, 22 Jul 2002 19:07:54 -0400 From: Marc Spitzer To: pgsql-sql Subject: Re: Editor for pgsql Message-ID: <20020722190754.A11513@oscar.eng.cv.net> Mail-Followup-To: pgsql-sql References: <200207221609.22089.james@lrgmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200207221609.22089.james@lrgmail.com>; from james@lrgmail.com on Mon, Jul 22, 2002 at 04:09:21PM -0400 X-Archive-Number: 200207/340 X-Sequence-Number: 8718 On Mon, Jul 22, 2002 at 04:09:21PM -0400, James Orr wrote: > On Monday 22 July 2002 12:27 pm, Josh Berkus wrote: > > > Me, I use Kate, an MDI text editor from the KDE crew, and CVS for > > version control. Thanks, KDE guys! But, after 3 years of Postgres, > > I'm pretty fluent in PL/pgSQL. I even double-quote without thinking > > about it. > > How do you use CVS on your database? I recently started doing this, and i'm > wondering how other people handle it. > > Basically I create a sql folder with three sub-folders tables, views > and functions. I have a file for each table in tables, each view in > views and for each trigger and/or function in functions. > > For the actual editing? I'm a vi fan myself :). If i'm using the graphical > vim I can even do CVS operations with a custom menu. > > - James James, That sounds very ugly, I will usually have 1-4 files per db. Either everything goes into 1 file, drops at the front then creates. Or 2 files, 1 for ddl( create/drop table) and another for plpgsql procedures and triggers. Sometimes I will split each of those into a create and drop file. But that is about as complex as I want it to get. marc