pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Atila Rangel <atila.rangel@cyberlabs.com.br>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: [Bug Report] Week Day
Date: Wed, 19 Feb 2020 11:47:11 +0100
Message-ID: <20200219104711.GA1797@depesz.com> (raw)
In-Reply-To: <CA+Ua9TtsZt96pV3CsTE6=Gb0HmfMQdpGdJLPxZRfb8dPuszw7Q@mail.gmail.com>
References: <CA+Ua9TtsZt96pV3CsTE6=Gb0HmfMQdpGdJLPxZRfb8dPuszw7Q@mail.gmail.com>

On Tue, Feb 18, 2020 at 11:59:58PM -0300, Atila Rangel wrote:
> Hi, I'm a software developer working with Postgresql database. Recently, I
> have had a issue with Week Day queries. Basically, I tried to filter some
> datetime based on day of week name. I'm sending a sql that you can
> reproduce the bug. This may not be a bug. But, I would like to report this.

It's not a bug. It is described in
https://www.postgresql.org/docs/current/functions-formatting.html :

day: full lower case day name (blank-padded to 9 chars)

you most likely want to use to_char(some_date, 'FMday')

depesz





view thread (4+ messages)

Message-ID: <20200219104711.GA1797@depesz.com>
Permalink:  ../20200219104711.GA1797@depesz.com/
Also on:    postgresql.org/message-id/20200219104711.GA1797@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: depesz@depesz.com, atila.rangel@cyberlabs.com.br
  Subject: Re: [Bug Report] Week Day
  In-Reply-To: <20200219104711.GA1797@depesz.com>
  References: <CA+Ua9TtsZt96pV3CsTE6=Gb0HmfMQdpGdJLPxZRfb8dPuszw7Q@mail.gmail.com> <20200219104711.GA1797@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox