From: | "Joel Jacobson" <joel(at)compiler(dot)org> |
---|---|
To: | "Marko Tiikkaja" <marko(at)joh(dot)to> |
Cc: | "PostgreSQL Hackers" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "Michael Paquier" <michael(at)paquier(dot)xyz> |
Subject: | Re: [PATCH] Implement motd for PostgreSQL |
Date: | 2021-04-03 06:50:54 |
Message-ID: | 6fe019f5-1102-4eff-9118-e2e346888b33@www.fastmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Apr 2, 2021, at 23:09, Marko Tiikkaja wrote:
> Hi Joel
>
> On Fri, Apr 2, 2021 at 11:47 PM Joel Jacobson <joel(at)compiler(dot)org> wrote:
>> PostgreSQL has since long been suffering from the lack of a proper UNIX style motd (message of the day).
>
> First of all, thanks for your work on this! I think this is an important feature to have, but I would love to see a way to have a set of strings from which you choose a random one to display. That way you could brighten your day with random positive messages.
>
>
> -marko
Fun idea! I implemented it as a Perl script using the fortune command.
There are quite a lot of elephant jokes in the fortune database actually.
$ sudo apt install fortune-mod
$ crontab -l
0 0 * * * bash -c "/usr/local/bin/fortune_slony.pl | psql"
$ psql
NOTICE:
____ ______ ___
/ )/ \/ \
( / __ _\ )
\ (/ o) ( o) )
\_ (_ ) \ ) /
\ /\_/ \)_/
\/ //| |\\
v | | v
\__/
Q: Know what the difference between your latest project
and putting wings on an elephant is?
A: Who knows? The elephant *might* fly, heh, heh...
/Joel
Attachment | Content-Type | Size |
---|---|---|
fortune_slony.pl | text/x-perl-script | 536 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Charles Clavadetscher | 2021-04-03 07:08:13 | Re: [PATCH] Implement motd for PostgreSQL |
Previous Message | Bharath Rupireddy | 2021-04-03 05:20:46 | Re: Support ALTER SUBSCRIPTION ... ADD/DROP PUBLICATION ... syntax |