Three wishes for a new year

It’s another new year by Jewish calendar. And what do I wish for in the following year?

  1. World peace
  2. Good health to all
  3. Have some way to turn SHOW commands into SELECT statements, server side. I’m fervently trying to hack around this. Stored routines, export/import from file, text manipulation, I don’t care! I want to SELECT seconds_behind_master somehow. Without plugins.

PS, none of my last year’s wishes came true. I’ll settle for two out of three.

10
Leave a Reply

avatar
8 Comment threads
2 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
5 Comment authors
Robert HodgesshlomiMatthew MontgomeryCyrilJim Agnew Recent comment authors

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
Notify of
Jim Agnew
Guest
Jim Agnew

Dear Shlomi, I finally did a Perl solution that is quite an awful hack, but it works… Interested?

Cyril
Guest

Happy New Year !
שנה טובה !

Hope this will be a great new year for all dba 🙂

Matthew Montgomery
Guest
Matthew Montgomery

You mean you want https://launchpad.net/is-replication-status included in mainline.

Robert Hodges
Guest

Hi Shlomi! Happy new year. Why don’t you just switch to Tungsten? Then you can select the seconds behind as follows:

select applied_latency as “seconds behind” from trep_commit_seqno

Robert Hodges
Guest

@Shlomi. Aw, I was just trying to be helpful! 🙂 However, I see what you mean. This seems to be another case of the “SQL is not quite a real language” problem.