Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 346221337BBB for ; Fri, 25 Feb 2011 14:47:11 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 69532-08 for ; Fri, 25 Feb 2011 18:47:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yw0-f46.google.com (mail-yw0-f46.google.com [209.85.213.46]) by mail.postgresql.org (Postfix) with ESMTP id 177301337BBA for ; Fri, 25 Feb 2011 14:47:02 -0400 (AST) Received: by ywj3 with SMTP id 3so551450ywj.19 for ; Fri, 25 Feb 2011 10:47:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :x-priority:in-reply-to:date:cc:content-transfer-encoding:message-id :references:to:x-mailer; bh=aF+VRB8H4Zs1p8CyvnvVsAlS3X0pPMRzuThVKCLJZlU=; b=ax1PM2Rx0TTuEdudUloh8Jed2N/xRWtSN0kzTwejfnLbIsAom6A9Dzb5CI0Qcxq9as qd++OwHUhuhndNf9KdU6XcH7WkNgvOPQp3hiOwdZ/WxQGpyOu/9zn7Xc2Dow99iAH8Sz l54AmFXD7NkWrnFENokFAYZx2iHBlJqYpePc4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:x-priority:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; b=s3P9jSaR5MXCtEZT33EPwPUI+zYRtaZID8jywcVpHaFE8Wfl/tCPFGU5pYQLVkafcA gwIixjaPrA3BpaY1KcskI9zrs4Wfmoc0K/SKteJgIi/cqZ8H33RI41CDl9GLVEO9Xo4r HIJ0shT3q+Vr95ddKKTi9MZ/nRHmxSmU5Jjl8= Received: by 10.100.92.14 with SMTP id p14mr1177495anb.58.1298659622160; Fri, 25 Feb 2011 10:47:02 -0800 (PST) Received: from [172.24.35.132] ([220.225.109.93]) by mx.google.com with ESMTPS id x31sm1172099ana.9.2011.02.25.10.46.59 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 Feb 2011 10:47:01 -0800 (PST) Subject: Re: Problem with serial counters Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Vibhor Kumar X-Priority: 3 In-Reply-To: <7AD8C28EFB264E22BB784F83949DF0D2@Cplus.int> Date: Sat, 26 Feb 2011 00:17:24 +0530 Cc: Content-Transfer-Encoding: quoted-printable Message-Id: References: <7AD8C28EFB264E22BB784F83949DF0D2@Cplus.int> To: Jacques Lebrun X-Mailer: Apple Mail (2.1082) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201102/125 X-Sequence-Number: 35201 On Feb 25, 2011, at 2:39 AM, Jacques Lebrun wrote: > What can I do to force PostGres to update the internat serial counter = when I do an insert with a specified value for the serial? > =20 After inserting the all the Data, use ALTER SEQUENCE Command: http://www.postgresql.org/docs/8.4/static/sql-altersequence.html Thanks & Regards, Vibhor