Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 4D77B63285F for ; Sat, 4 Jul 2009 14:26:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 85116-10 for ; Sat, 4 Jul 2009 14:26:38 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f223.google.com (mail-ew0-f223.google.com [209.85.219.223]) by mail.postgresql.org (Postfix) with ESMTP id 8CD01632185 for ; Sat, 4 Jul 2009 14:26:40 -0300 (ADT) Received: by ewy23 with SMTP id 23so406642ewy.19 for ; Sat, 04 Jul 2009 10:26:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=d13dFi5smblZ0mvUKX9FxXNPUdVwjDxsPxSseboQ4Ro=; b=db8/Xtd/9SEioU+EokdpmZ9jsq7ZoEjwPDXqsG+gljBC1+SBwTP7l6dqLrj6Iqg7Ij KtsCKbpvd1g0lxve0bFID4pSajTv2oUQcxhtZdCS+oUvCuKaSxaogI7mmQxgsdwBh1gA F4rpFEgG1iXrDrnNJBCzBiAbyD6wIxibqiFoM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=viy9Eeg9bMDGnscznGxe9cSqsiLbMo1iBmQmQYY2zw0JVFwrFFI7yriKi3awSGIsXE dTFjsZV7XY2KD2dDu+QYZ/AGFyzjolh9WCOFuGjy4Q6tH8HcpBiHPD9binNbieHnf/R9 TSRghFBsq7L5oWuCxHwjYKC5TzI04+bTDRiGo= MIME-Version: 1.0 Received: by 10.210.113.16 with SMTP id l16mr502511ebc.75.1246728399154; Sat, 04 Jul 2009 10:26:39 -0700 (PDT) In-Reply-To: References: <871vox4fgy.fsf@dba2.int.libertyrms.com> Date: Sat, 4 Jul 2009 11:26:39 -0600 Message-ID: Subject: Re: Sequences From: Scott Marlowe To: Jasmin Dizdarevic Cc: pgsql-sql@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.033 tagged_above=0 required=5 tests=AWL=0.033 X-Spam-Level: X-Archive-Number: 200907/17 X-Sequence-Number: 32758 Easiest way is with pg_dump -s -t tablename dbname On Sat, Jul 4, 2009 at 6:35 AM, Jasmin Dizdarevic wrote: > Nice Information. Does somebody know how to get the complete > create-statement of an existing table/view? > > 2009/7/3 Chris Browne >> >> Andre Rothe writes: >> > Where are stored the sequence information? How I can query the >> > properties of a sequence like increment, max/min value, cache? >> > I'm looking for a table like user_sequences in Oracle, where I >> > can query all of my sequences. >> >> cbbrowne=3D# create sequence foo; >> CREATE SEQUENCE >> cbbrowne=3D# select * from foo; >> =A0sequence_name | last_value | increment_by | =A0 =A0 =A0max_value =A0 = =A0 =A0| >> min_value | cache_value | log_cnt | is_cycled | is_called >> >> ---------------+------------+--------------+---------------------+------= -----+-------------+---------+-----------+----------- >> =A0foo =A0 =A0 =A0 =A0 =A0 | =A0 =A0 =A0 =A0 =A01 | =A0 =A0 =A0 =A0 =A0 = =A01 | 9223372036854775807 | >> 1 | =A0 =A0 =A0 =A0 =A0 1 | =A0 =A0 =A0 1 | f =A0 =A0 =A0 =A0 | f >> (1 row) >> >> Each sequence is effectively a relation. >> -- >> output =3D ("cbbrowne" "@" "cbbrowne.com") >> http://www3.sympatico.ca/cbbrowne/wp.html >> Where do you want to Tell Microsoft To Go Today? >> >> -- >> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgsql-sql > > > > -- > Mit freundlichen Gr=FC=DFen > > Dizdarevic Jasmin > Sonnenbergstr. 3 > 6714 N=FCziders, AUT > > jasmin.dizdarevic@gmail.com > +43 664 411 79 29 > > --=20 When fascism comes to America, it will be intolerance sold as diversity.