pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: negora <public@negora.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: dbeaver
Date: Thu, 2 Apr 2020 08:33:49 +0200
Message-ID: <50ecbecc-a066-10f3-c3c0-57907aa52558@negora.com> (raw)
In-Reply-To: <91dd694b-c19f-df70-d155-36374790499d@gmx.net>
References: <AM0PR0502MB365047B3DB23FB998B68E29699C90@AM0PR0502MB3650.eurprd05.prod.outlook.com>
	<e01d2a75-d1d9-1a70-d830-0b16b82e9bd0@negora.com>
	<91dd694b-c19f-df70-d155-36374790499d@gmx.net>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Both features reside only in the client side, of course.<br>
    </p>
    <p>A virtual column allows to permanently show, in a table, a column
      calculated from a JavaScript-alike expression. That expression is
      based on other columns of the table and offers several
      mathematical functions. I know that you can do the same with a
      view, which is much more powerful, but doing this in the
      client-side has some advantages in certain situations:</p>
    <ol>
      <li>If you have not permission to create a view.<br>
        <br>
      </li>
      <li>If you have permission, but don't want to clutter the schema.
        So it's not invasive to other users.<br>
        <br>
      </li>
      <li>You can use this column to color the rows by a given criteria.<br>
        <br>
      </li>
      <li>Maybe the most important: since you're viewing a table and not
        a view, you can still edit the records from the GUI, as usual.<br>
      </li>
    </ol>
    Virtual foreign keys, on the other hand, didn't seem interesting to
    me... Until I had to work with a database from Microsoft Navision in
    SQL Server. Navision don't use foreign keys at the database level.
    So, in order to figure out the relationships among tables, I had to
    add virtual FKs. That way, I had a permanent visual aid. That
    feature, combined with the auto-diagrams generated by DBeaver,
    allowed me to understand part of that mess. It was my salvation.<br>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 01/04/2020 22:28, Thomas Kellerer
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:91dd694b-c19f-df70-d155-36374790499d@gmx.net">negora
      schrieb am 01.04.2020 um 21:44:
      <br>
      <blockquote type="cite">It has lots of useful features, such as
        good query completion, row
        <br>
        coloring, virtual columns, virtual foreign keys
        <br>
      </blockquote>
      What kind of feature is "virtual foreign keys"?
      <br>
      <br>
      Or "virtual columns" in the context of a SQL GUI tool
      <br>
      <br>
      <br>
      <br>
      <br>
    </blockquote>
  </body>
</html>





view thread (6+ messages)

Message-ID: <50ecbecc-a066-10f3-c3c0-57907aa52558@negora.com>
Permalink:  ../50ecbecc-a066-10f3-c3c0-57907aa52558@negora.com/
Also on:    postgresql.org/message-id/50ecbecc-a066-10f3-c3c0-57907aa52558@negora.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-general@postgresql.org
  Cc: public@negora.com
  Subject: Re: dbeaver
  In-Reply-To: <50ecbecc-a066-10f3-c3c0-57907aa52558@negora.com>
  References: <AM0PR0502MB365047B3DB23FB998B68E29699C90@AM0PR0502MB3650.eurprd05.prod.outlook.com> <e01d2a75-d1d9-1a70-d830-0b16b82e9bd0@negora.com> <91dd694b-c19f-df70-d155-36374790499d@gmx.net> <50ecbecc-a066-10f3-c3c0-57907aa52558@negora.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