pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
To: ezequias@fastcon.com.br <ezequias@fastcon.com.br>
Cc: pgsql-sql@postgresql.org
Subject: Re: Empty Table
Date: Thu, 29 Mar 2007 23:46:31 +0530
Message-ID: <a97c77030703291116p2488c816v42858b658c92bf09@mail.gmail.com> (raw)
In-Reply-To: <web-47683571@correio2.docasdoporto.com.br>
References: <web-47683571@correio2.docasdoporto.com.br>

psql> TRUNCATE TABLE <tablename>;

if you have too many tables , generate the above commands
by using a query on tables information schema table.
hope it helps.

On 3/29/07, ezequias@fastcon.com.br <ezequias@fastcon.com.br> wrote:
> Hi list,
>
> I have many tables with many constraints and I would like to empty all my
> tables.
>
> There is any simple way to do it ?
>
> I have pgAdmin here but not psql.
>
> Any help would be glad.
>
> Regards
> Ezequias
>
>
> --
> Ezequias Rodrigues da Rocha
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org
>



view thread (5+ messages)  latest in thread

Message-ID: <a97c77030703291116p2488c816v42858b658c92bf09@mail.gmail.com>
Permalink:  ../a97c77030703291116p2488c816v42858b658c92bf09@mail.gmail.com/
Also on:    postgresql.org/message-id/a97c77030703291116p2488c816v42858b658c92bf09@mail.gmail.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-sql@postgresql.org
  Cc: mallah.rajesh@gmail.com, ezequias@fastcon.com.br
  Subject: Re: Empty Table
  In-Reply-To: <a97c77030703291116p2488c816v42858b658c92bf09@mail.gmail.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