Support for using alias in having clause - Mailing list pgsql-general

From Michael Lewis
Subject Support for using alias in having clause
Date
Msg-id CAHOFxGpNO3dfV7r0++JLEDLceer_k04FSjUjrqH+E=wffNTz9g@mail.gmail.com
Whole thread Raw
List pgsql-general
Why can I use an alias for group by and order by and not for having? I am just wondering if there is some barrier to it being implemented, or if it just hasn't been.

select
table_schema || '.' || table_name AS schema_qualified_table_name,
count( column_name ) as column_count
from
information_schema.columns
group by
schema_qualified_table_name
having
count( column_name ) > 50 /* this works, but trying column_count > 50 does not */
order by
column_count desc;

pgsql-general by date:

Previous
From: "Igal @ Lucee.org"
Date:
Subject: How to install Postgres 12 beta with YUM
Next
From: Jeremy Finzel
Date:
Subject: How to use brin_summarize_range