Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9JHl3P08306 for ; Fri, 19 Oct 2001 13:47:03 -0400 (EDT) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 151189; Fri, 19 Oct 2001 10:46:50 -0700 From: "Josh Berkus" Subject: Re: system maintained keys To: "Stefan Lindner" , pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Fri, 19 Oct 2001 10:46:50 -0700 Message-ID: In-Reply-To: <9qf06v$20bh$1@news.tht.net> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200110/281 X-Sequence-Number: 5234 Stefan, > Is there any way to get system maintained keys from postgres? e.g. to > have a table with a primary key column (varchar or int) and let > postgres > chose the next unique value for this column? Please address future questions of this type to the PGSQL-NOVICE list. PGSQL-SQL is for more advanced SQL issues. Yes, you can do this easily, Please see: http://www.postgresql.org/idocs/index.php?datatype.html#DATATYPE-NUMERIC Look at secion 3.1.1 on the page. -Josh ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco