agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: komala pelleti <p.komala@gmail.com>
Cc: pgsql-sql@lists.postgresql.org
Subject: Re: Vacumdb Command Problem
Date: Thu, 26 Jul 2018 13:41:52 +0200
Message-ID: <20180726114152.pcaty4gegr2awziq@depesz.com> (raw)
In-Reply-To: <CAK=G_euBv0xvKKK=H=b1+OAaJRp+6t0sdwQQKynobpBGUvbTfg@mail.gmail.com>
References: <CAK=G_euBv0xvKKK=H=b1+OAaJRp+6t0sdwQQKynobpBGUvbTfg@mail.gmail.com>

On Thu, Jul 26, 2018 at 04:08:55PM +0530, komala pelleti wrote:
> Hi
> I have vaccume one of the schema on basis of pct_dead count.
> 
> so my schema contains special character"_".
> 
> it is giving error saying that :
> 
> vacuumdb -d cidb -U postgres -t "test-services".monitoredresource;
> 
> vacuumdb: vacuuming of table "test-services.monitoredresource" in database
> "cidb" failed: ERROR:  syntax error at or near "-"
> 
> how to correct this ?

Try:
vacuumdb -d cidb -U postgres -t '"test-services".monitoredresource'

Best regards,

depesz





view thread (2+ messages)

Message-ID: <20180726114152.pcaty4gegr2awziq@depesz.com>
Permalink:  ../20180726114152.pcaty4gegr2awziq@depesz.com/
Also on:    postgresql.org/message-id/20180726114152.pcaty4gegr2awziq@depesz.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: depesz@depesz.com, p.komala@gmail.com, pgsql-sql@lists.postgresql.org
  Subject: Re: Vacumdb Command Problem
  In-Reply-To: <20180726114152.pcaty4gegr2awziq@depesz.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox