Re: Select statement error in PostgreSQL 11.9

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Mohammed Afsar <vmdapsar(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Select statement error in PostgreSQL 11.9
Date: 2023-02-21 20:34:56
Message-ID: CAKFQuwauVTrLh9Hnr7nVaV=+kR7SSeBPXOuAP4CQoZaKtaWJFA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Feb 21, 2023 at 12:24 PM Mohammed Afsar <vmdapsar(at)gmail(dot)com> wrote:

> When am doing select table column name copy paste getting below and if am
> typing colum name it is working could please check and confirm why it
> behaving.
>

If copy-paste is mis-behaving it is likely because of invisible characters
in whatever you are copying. If typing out the same query by hand results
in a working query this is evidence of the same.

>
> 1.User has all privileges and for other columns it is working fine.
>
> 2.charecter set also same and there is no extension
>
> 3.data type is character varying 255
>

Given that you have a basic syntax error none of those above observations
are helpful - you didn't get far enough into the parsing processing.
David J.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Alessandro Papa - Infolab 2023-02-22 16:17:47 pg_dump: error
Previous Message Mohammed Afsar 2023-02-21 19:24:07 Select statement error in PostgreSQL 11.9