<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: VisuaLeaf</title>
    <description>The latest articles on DEV Community by VisuaLeaf (@visualeaf).</description>
    <link>https://dev.to/visualeaf</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3818324%2F6cb54fe1-a36c-4f1a-a7b5-fa360f5daf8a.png</url>
      <title>DEV Community: VisuaLeaf</title>
      <link>https://dev.to/visualeaf</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/visualeaf"/>
    <language>en</language>
    <item>
      <title>9 Best MySQL GUI Clients in 2027 for Windows, Mac, and Linux</title>
      <dc:creator>VisuaLeaf</dc:creator>
      <pubDate>Fri, 27 Nov 2026 12:19:17 +0000</pubDate>
      <link>https://dev.to/visualeaf/9-best-mysql-gui-clients-in-2027-for-windows-mac-and-linux-52dk</link>
      <guid>https://dev.to/visualeaf/9-best-mysql-gui-clients-in-2027-for-windows-mac-and-linux-52dk</guid>
      <description>&lt;p&gt;Most MySQL GUIs can run a query and show you a table. The differences appear when you need more than that: joining tables without writing SQL, understanding why a query is slow, or checking what changed between two copies of your data.&lt;/p&gt;

&lt;p&gt;I tested nine clients on the same fictional running-store database and ran the same tasks in each. That way, the comparison shows how each tool behaves in practice, not just what its feature page promises.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I checked in each client:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can you browse and edit data without writing SQL?&lt;/li&gt;
&lt;li&gt;Is there a visual query builder, and does it show the SQL it generates?&lt;/li&gt;
&lt;li&gt;Does it draw an ER diagram from your foreign keys, and can you edit it?&lt;/li&gt;
&lt;li&gt;Can it explain a slow query with a readable execution plan or profiler?&lt;/li&gt;
&lt;li&gt;Can it compare data or schemas between two databases?&lt;/li&gt;
&lt;li&gt;Which features are free, and which need a paid edition?&lt;/li&gt;
&lt;li&gt;Does it run natively on Windows, macOS, and Linux?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tested on Windows 11 with MySQL 8.4.11. Prices checked on November 24, 2026.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick comparison
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;th&gt;Edition tested&lt;/th&gt;
&lt;th&gt;Operating systems&lt;/th&gt;
&lt;th&gt;Free option&lt;/th&gt;
&lt;th&gt;Annual or perpetual price&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;1. VisuaLeaf&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Best overall visual workspace&lt;/td&gt;
&lt;td&gt;Professional&lt;/td&gt;
&lt;td&gt;Windows, macOS, Linux&lt;/td&gt;
&lt;td&gt;Community edition&lt;/td&gt;
&lt;td&gt;Basic &lt;strong&gt;$79 perpetual&lt;/strong&gt;; Professional &lt;strong&gt;$149 perpetual&lt;/strong&gt;, with one year of updates&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;2. dbForge Studio for MySQL&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MySQL development and administration on Windows&lt;/td&gt;
&lt;td&gt;Enterprise&lt;/td&gt;
&lt;td&gt;Windows natively; macOS/Linux through CrossOver or Wine&lt;/td&gt;
&lt;td&gt;Express edition&lt;/td&gt;
&lt;td&gt;Standard &lt;strong&gt;$99.95/year&lt;/strong&gt;; Professional &lt;strong&gt;$179.95/year&lt;/strong&gt;; Enterprise &lt;strong&gt;$229.95/year&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;3. DbSchema&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Modeling and test data&lt;/td&gt;
&lt;td&gt;Pro&lt;/td&gt;
&lt;td&gt;Windows, macOS, Linux&lt;/td&gt;
&lt;td&gt;Community edition&lt;/td&gt;
&lt;td&gt;Pro &lt;strong&gt;$294 perpetual&lt;/strong&gt;; Architect &lt;strong&gt;$470.40 perpetual&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;4. phpMyAdmin&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Managing MySQL in the browser&lt;/td&gt;
&lt;td&gt;Single edition&lt;/td&gt;
&lt;td&gt;Browser; PHP/web-server or container deployment&lt;/td&gt;
&lt;td&gt;Entire application&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$0 license fee&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;5. DBeaver&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;One client for many databases&lt;/td&gt;
&lt;td&gt;Ultimate 26.2.0&lt;/td&gt;
&lt;td&gt;Windows, macOS, Linux&lt;/td&gt;
&lt;td&gt;Community edition&lt;/td&gt;
&lt;td&gt;Lite &lt;strong&gt;$113/year&lt;/strong&gt;; Enterprise &lt;strong&gt;$255/year&lt;/strong&gt;; Ultimate &lt;strong&gt;$510/year&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;6. Navicat for MySQL&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Data profiling&lt;/td&gt;
&lt;td&gt;Navicat 18 for MySQL&lt;/td&gt;
&lt;td&gt;Windows, macOS, Linux&lt;/td&gt;
&lt;td&gt;Separate Navicat Premium Lite product, with restrictions&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;$279.99/year&lt;/strong&gt; or &lt;strong&gt;$559 perpetual&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;7. DbGate&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Visual queries plus charts&lt;/td&gt;
&lt;td&gt;Premium&lt;/td&gt;
&lt;td&gt;Windows, macOS, Linux; self-hosted web options&lt;/td&gt;
&lt;td&gt;Community edition&lt;/td&gt;
&lt;td&gt;Premium &lt;strong&gt;$120/year&lt;/strong&gt;; Team Premium &lt;strong&gt;$150/year&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;8. SQLyog&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Windows admin and backups&lt;/td&gt;
&lt;td&gt;Commercial trial&lt;/td&gt;
&lt;td&gt;Windows natively&lt;/td&gt;
&lt;td&gt;Community edition&lt;/td&gt;
&lt;td&gt;Commercial SQLyog &lt;strong&gt;$299 perpetual&lt;/strong&gt;, including first-year maintenance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;9. HeidiSQL&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Free lightweight client&lt;/td&gt;
&lt;td&gt;Single edition&lt;/td&gt;
&lt;td&gt;Windows, Linux, macOS (Apple Silicon)&lt;/td&gt;
&lt;td&gt;Entire application&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$0 license fee&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Prices are in USD for one user, before applicable taxes unless the storefront specifies otherwise. Only annual subscriptions and perpetual purchases are shown.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I tested the clients
&lt;/h2&gt;

&lt;p&gt;The starting database, &lt;code&gt;mysql_store_demo&lt;/code&gt;, contained ten tables and an order-summary view. It included customers, products, orders, payments, shipments, and reviews, with foreign keys and JSON product specifications. The original dataset had 600 orders, 1,800 order items, and 30 products.&lt;/p&gt;

&lt;p&gt;I inspected the schema in each client, ran queries, and tested additional features appropriate to the tool. Where a visual query builder was available, I used the same orders–order items–products example. Other tasks included inspecting execution plans, browsing linked records, generating fictional customers, profiling column data, charting query results, adding an index, and creating a backup.&lt;/p&gt;

&lt;p&gt;These were usability and feature tests on a small database. Query timings are not a performance ranking: indexes and test tables changed during the work, and a GUI's execution-plan costs are not elapsed milliseconds. The operating systems above are the vendors' supported platforms; I tested on Windows.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. &lt;a href="https://visualeaf.com/database/mysql/" rel="noopener noreferrer"&gt;VisuaLeaf&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;I tested VisuaLeaf &lt;a href="https://visualeaf.com/compare-plans/" rel="noopener noreferrer"&gt;Professional edition&lt;/a&gt;. It keeps schema, data, and query tools in one application, for SQL databases and MongoDB alike.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8zmfyxto5wepwna3s03x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8zmfyxto5wepwna3s03x.png" alt="MySQL store database ER diagram in VisuaLeaf." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;VisuaLeaf displaying the store database's tables and foreign-key relationships.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Feature highlights&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Schema diagrams:&lt;/em&gt;&lt;/strong&gt;* draw one from scratch or reverse-engineer a live database&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;SQL editor:&lt;/em&gt;&lt;/strong&gt;* inline editing, plus a &lt;a href="https://visualeaf.com/docs/sql-query-builder" rel="noopener noreferrer"&gt;visual query builder&lt;/a&gt; that shows the generated SQL as you build&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Index manager:&lt;/em&gt;&lt;/strong&gt;* create, change, and drop indexes&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Query profiler:&lt;/em&gt;&lt;/strong&gt;* spot and diagnose slow statements (Basic and up)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Data compare and sync:&lt;/em&gt;&lt;/strong&gt;* row-level differences across SQL and MongoDB databases (Professional)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Data masking:&lt;/em&gt;&lt;/strong&gt;* hide sensitive fields in exports (Basic and up)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Task automation:&lt;/em&gt;&lt;/strong&gt;* import, export, and migration jobs, including scheduled transfers&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Charts and dashboards:&lt;/em&gt;&lt;/strong&gt;* built straight from query results (Professional)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;AI help:&lt;/em&gt;&lt;/strong&gt;* AI Assistant in Basic, MCP support in Professional&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Documentation:&lt;/em&gt;&lt;/strong&gt;* interactive HTML5, PDF, JSON, or DDL (Professional)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the &lt;a href="https://visualeaf.com/features/visual-query-builder/" rel="noopener noreferrer"&gt;Visual Query Builder&lt;/a&gt;, I joined &lt;code&gt;orders&lt;/code&gt;, &lt;code&gt;order_items&lt;/code&gt;, and &lt;code&gt;products&lt;/code&gt;, selected the order number, quantity, line total, and product name, and filtered for delivered orders. Seeing the joins, filter, and results together made the query easy to follow. The &lt;a href="https://visualeaf.com/features/query-profiler/" rel="noopener noreferrer"&gt;Query Profiler&lt;/a&gt; complemented this with statement activity, execution counts, timings, and the execution plan, helping you identify which queries deserve a closer look.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F239ttlwvxv1kjbe7nu2r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F239ttlwvxv1kjbe7nu2r.png" width="800" height="553"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcya8wpurwzay63iw29e1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcya8wpurwzay63iw29e1.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;VisuaLeaf’s Visual Query Builder and Query Profiler showing table joins, filtered results, statement activity, and an execution plan.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Pros&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The visual query builder shows the generated SQL as you build.&lt;/li&gt;
&lt;li&gt;Profiling and comparison sit alongside the everyday editing tools.&lt;/li&gt;
&lt;li&gt;Useful when MySQL is part of a wider SQL and MongoDB workflow.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Cons&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Query Profiler requires a paid plan.&lt;/li&gt;
&lt;li&gt;Newer on the market than the other tools here, so there are fewer community guides and forum answers. Still, it's a strong choice.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;*&lt;strong&gt;&lt;em&gt;My personal note:&lt;/em&gt;&lt;/strong&gt;* There are a lot of features, so it can take a while to find your way around at first. The built-in tutorials inside the app helped me get up to speed quickly.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* Community is free. Basic is $79, and Professional is $149 as perpetual purchases with one year of updates. A 14-day Professional trial is available. &lt;a href="https://visualeaf.com/pricing/" rel="noopener noreferrer"&gt;Compare editions&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. &lt;a href="https://www.devart.com/dbforge/mysql/studio/" rel="noopener noreferrer"&gt;dbForge Studio for MySQL&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;I tested dbForge Studio for MySQL Enterprise. It's the most MySQL-focused tool on this list, covering development and administration in one studio. Check the &lt;a href="https://www.devart.com/dbforge/mysql/studio/editions.html" rel="noopener noreferrer"&gt;edition matrix&lt;/a&gt;, because features are spread across several plans.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4lomkfkqwlt9nknoo1x5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4lomkfkqwlt9nknoo1x5.png" alt="Store database tables and relationships in dbForge Studio for MySQL." width="800" height="481"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The MySQL store schema displayed in dbForge Studio's Database Designer.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Feature highlights&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Database Designer:&lt;/em&gt;&lt;/strong&gt;* design and edit the schema on an ER diagram&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Query Builder:&lt;/em&gt;&lt;/strong&gt;* build queries visually, with the SQL generated for you; SELECT queries are available in the free Express edition.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Query Profiler:&lt;/em&gt;&lt;/strong&gt;* execution-plan diagrams and query statistics (Standard and up)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Master-Detail Browser:&lt;/em&gt;&lt;/strong&gt;* see parent and child records side by side (Standard and up)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Debugger:&lt;/em&gt;&lt;/strong&gt;* step through stored procedures, functions, and triggers&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Schema and data compare:&lt;/em&gt;&lt;/strong&gt;* find differences and generate sync scripts (Professional and up)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Backup and restore:&lt;/em&gt;&lt;/strong&gt;* with command-line automation in higher editions&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Data Generator and Documenter:&lt;/em&gt;&lt;/strong&gt;* realistic test data and schema documentation (Enterprise)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Source control:&lt;/em&gt;&lt;/strong&gt;* version your database objects (Enterprise)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;AI Assistant:&lt;/em&gt;&lt;/strong&gt;* generate, explain, and optimize SQL with the integrated dbForge AI Assistant.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The Query Profiler displayed the query's access paths, joins, sorting, and estimated costs as a diagram. I also used the Master-Detail Browser: after connecting &lt;code&gt;orders&lt;/code&gt; and &lt;code&gt;order_items&lt;/code&gt;, selecting order 8 showed its three matching items underneath, without writing a join.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftdytulopyev4h6j8kjl2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftdytulopyev4h6j8kjl2.png" width="799" height="502"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiy7u685u1ac11euc78dw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiy7u685u1ac11euc78dw.png" width="800" height="621"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;dbForge Studio visualizing a query's execution plan and displaying order 8 with its three related order items.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Pros&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Broad MySQL development and administration coverage.&lt;/li&gt;
&lt;li&gt;Clear execution-plan visualization and practical linked-record browsing.&lt;/li&gt;
&lt;li&gt;Database Designer for visual schema work alongside the admin tools.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Cons&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Native Windows application; macOS and Linux require a compatibility layer.&lt;/li&gt;
&lt;li&gt;Comparison, reporting, and other advanced functions require a higher edition.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;*&lt;strong&gt;&lt;em&gt;My personal note:&lt;/em&gt;&lt;/strong&gt;* The Master-Detail Browser was my favorite discovery here. I just wish there were a native macOS version.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* Express is free. Advertised annual prices are $99.95 for Standard, $179.95 for Professional, and $229.95 for Enterprise. The Query Profiler and Master-Detail Browser shown here are available in Standard or higher. &lt;a href="https://www.devart.com/dbforge/mysql/studio/" rel="noopener noreferrer"&gt;Pricing&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. &lt;a href="https://dbschema.com/" rel="noopener noreferrer"&gt;DbSchema&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;I tested DbSchema Pro, which puts the diagram and design model at the center of the workflow.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frn9mbipicjt7hauscsoa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frn9mbipicjt7hauscsoa.png" alt="MySQL store schema and foreign-key relationships in DbSchema." width="800" height="481"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DbSchema reverse-engineering the MySQL store database into a relationship diagram.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Feature highlights&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Diagram-first design:&lt;/em&gt;&lt;/strong&gt;* reverse-engineer a database, then edit and save the model offline&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Schema sync:&lt;/em&gt;&lt;/strong&gt;* compare the model with the live database and generate the migration SQL&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Visual query builder:&lt;/em&gt;&lt;/strong&gt;* joins and filters on a diagram, next to the results&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Relational data browser:&lt;/em&gt;&lt;/strong&gt;* follow foreign keys from one table's rows to the next&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Data generator:&lt;/em&gt;&lt;/strong&gt;* patterned test data that can reuse existing parent keys&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Documentation:&lt;/em&gt;&lt;/strong&gt;* HTML, PDF, or Markdown&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;AI Assistant:&lt;/em&gt;&lt;/strong&gt;* optional paid add-on&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I used the visual builder to connect orders, order items, and products, then filtered for delivered orders. The joined tables, generated SQL, and returned rows were visible together.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://dbschema.com/documentation/random-data-generator.html" rel="noopener noreferrer"&gt;Data Generator&lt;/a&gt; was the strongest practical example. I created a separate &lt;code&gt;demo_customers&lt;/code&gt; table and generated 100 rows. The configuration showed first-name and last-name patterns, an email pattern, a date generator, and a skipped auto-increment ID. The result reported, "Succeeded 100."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7oglfj4bzhalc7dprrdu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7oglfj4bzhalc7dprrdu.png" width="800" height="530"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3fuwxsfdjt8jug87j4f6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3fuwxsfdjt8jug87j4f6.png" width="799" height="438"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DbSchema's visual query builder alongside a successful generation of 100 demo customers with configurable column patterns.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Pros&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Strong emphasis on diagrams and the database model.&lt;/li&gt;
&lt;li&gt;Configurable test-data patterns with sample output.&lt;/li&gt;
&lt;li&gt;A perpetual Pro license is available.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Cons&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Saving model files, the visual query builder, the relational data browser, and the generator all require Pro.&lt;/li&gt;
&lt;li&gt;The diagram is part of almost every screen, which can feel crowded when you just want to write SQL.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;*&lt;strong&gt;&lt;em&gt;My personal note:&lt;/em&gt;&lt;/strong&gt;* DbSchema is one of the most complete design tools I've used, and the diagram-first approach really pays off when you're modeling. What annoys me a little is that the diagram follows you everywhere, even in the query builder and SQL editor, when sometimes I just want a clean editor.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* Community is free. Pro is $294 perpetual and includes one year of upgrades; later updates are optional at $75/year. &lt;a href="https://dbschema.com/purchase.html?currency=USD" rel="noopener noreferrer"&gt;Pricing and license terms&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. &lt;a href="https://www.phpmyadmin.net/" rel="noopener noreferrer"&gt;phpMyAdmin&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;phpMyAdmin is a web application for MySQL and MariaDB administration, free under the GNU GPL with a single edition. &lt;a href="https://www.phpmyadmin.net/" rel="noopener noreferrer"&gt;Project overview&lt;/a&gt; · &lt;a href="https://www.phpmyadmin.net/license/" rel="noopener noreferrer"&gt;License&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwilxxijewrymnxzrq1b2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwilxxijewrymnxzrq1b2.png" alt="MySQL store tables and relationships in phpMyAdmin Designer." width="800" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;phpMyAdmin Designer displaying relationships in the MySQL store database.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Feature highlights&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Browser access:&lt;/em&gt;&lt;/strong&gt;* nothing to install on the desktop&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Designer:&lt;/em&gt;&lt;/strong&gt;* a graphical view of tables and relationships&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Structure editor:&lt;/em&gt;&lt;/strong&gt;* tables, columns, and indexes through forms&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;User management:&lt;/em&gt;&lt;/strong&gt;* accounts and privileges&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Import and export:&lt;/em&gt;&lt;/strong&gt;* SQL, CSV, and other formats&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;SQL tab:&lt;/em&gt;&lt;/strong&gt;* run queries directly against the server&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I used a Docker deployment. After connecting, I ran the delivered-product revenue query and created a composite index on &lt;code&gt;orders(status, ordered_at)&lt;/code&gt; through the Structure interface.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://docs.phpmyadmin.net/en/latest/relations.html" rel="noopener noreferrer"&gt;Designer&lt;/a&gt; availability and saved layouts depend on the installation's configuration.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwo81ut4q55qmk9xfg7ln.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwo81ut4q55qmk9xfg7ln.png" width="800" height="624"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flpr8lfg329z6lrk1v0kp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flpr8lfg329z6lrk1v0kp.png" width="800" height="596"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;phpMyAdmin running a product-revenue query and showing the composite status-and-date index created on the orders table.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Pros&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Entirely free, with no paid feature tier to unlock.&lt;/li&gt;
&lt;li&gt;Browser access suits shared or hosted environments.&lt;/li&gt;
&lt;li&gt;Useful table, index, import/export, and user-management controls.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Cons&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Requires a running PHP/web-server stack or container deployment.&lt;/li&gt;
&lt;li&gt;Feels more like an administration console than a desktop development workspace.&lt;/li&gt;
&lt;li&gt;Designer may need additional configuration.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;*&lt;strong&gt;&lt;em&gt;My personal note:&lt;/em&gt;&lt;/strong&gt;* It works, but it looks and feels like an admin panel from years ago.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* $0 for the software. Hosting or infrastructure costs, if any, are separate.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. &lt;a href="https://dbeaver.com/" rel="noopener noreferrer"&gt;DBeaver&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;I tested DBeaver Ultimate 26.2.0. Its wider appeal is database coverage: MySQL alongside PostgreSQL and many other JDBC-based systems.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flnl5o0yfuj2k4xb23zth.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flnl5o0yfuj2k4xb23zth.png" alt="MySQL store database ER diagram in DBeaver." width="799" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DBeaver displaying the tables and relationships of the MySQL store schema.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Feature highlights&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;SQL editor:&lt;/em&gt;&lt;/strong&gt;* one editor for MySQL and dozens of other databases&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;ER diagrams:&lt;/em&gt;&lt;/strong&gt;* view tables and relationships&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Visual query builder:&lt;/em&gt;&lt;/strong&gt;* build joins without writing SQL (Lite and up)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Graphical execution plans:&lt;/em&gt;&lt;/strong&gt;* read plans as a diagram (Lite and up)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;JSON and XML viewer:&lt;/em&gt;&lt;/strong&gt;* format nested values beside the result grid&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Schema and data compare:&lt;/em&gt;&lt;/strong&gt;* spot differences between databases (Enterprise, Ultimate)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Task scheduler:&lt;/em&gt;&lt;/strong&gt;* automate recurring jobs (Enterprise, Ultimate)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Data transfer:&lt;/em&gt;&lt;/strong&gt;* import, export, and move data between databases&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The JSON value viewer was useful with the store's &lt;code&gt;products.specifications&lt;/code&gt; column. I opened the Value panel and formatted the selected product's specification, keeping the product rows visible beside it.&lt;/p&gt;

&lt;p&gt;I also generated an execution plan for the delivered-product revenue query. The graphical view displayed sorting, grouping, nested loops, and table-access methods.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpyfn0pxjrg0367p8e351.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpyfn0pxjrg0367p8e351.png" width="799" height="557"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqn1khl8p50cumdltpxtt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqn1khl8p50cumdltpxtt.png" width="799" height="557"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DBeaver inspecting JSON product specifications and visualizing the revenue query's execution plan in Ultimate.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Pros&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Graphical execution plans that make MySQL plans easy to read.&lt;/li&gt;
&lt;li&gt;Useful JSON cell inspection and formatting.&lt;/li&gt;
&lt;li&gt;Convenient for working across several database engines.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Cons&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The number of panels and settings takes time to learn.&lt;/li&gt;
&lt;li&gt;Visual query building, graphical plans, and advanced development tools are in paid editions.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;*&lt;strong&gt;&lt;em&gt;My personal note:&lt;/em&gt;&lt;/strong&gt;* Too many panels and settings; finding the right option took longer than it should.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* Community is free. Annual plans are Lite $113, Enterprise $255, and Ultimate $510. &lt;a href="https://dbeaver.com/edition/" rel="noopener noreferrer"&gt;Compare editions&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. &lt;a href="https://www.navicat.com/en/products/navicat-for-mysql" rel="noopener noreferrer"&gt;Navicat for MySQL&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;I tested Navicat 18 for MySQL, which pairs a polished editor with data-quality and modeling tools. &lt;a href="https://www.navicat.com/en/products/navicat-for-mysql" rel="noopener noreferrer"&gt;Product overview&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdn2ybcg87xlhuqa2kivx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdn2ybcg87xlhuqa2kivx.png" alt="Navicat model diagram of the MySQL store database and its relationships." width="799" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The MySQL store schema reverse-engineered into a Navicat model workspace.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Feature highlights&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Data Profiling:&lt;/em&gt;&lt;/strong&gt;* statistics and value distributions for any column&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Query Builder:&lt;/em&gt;&lt;/strong&gt;* visual joins and filters, with the SQL shown alongside&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;ER Diagram View:&lt;/em&gt;&lt;/strong&gt;* an automatic diagram of the database (Standard, Enterprise)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Data modeling:&lt;/em&gt;&lt;/strong&gt;* reverse-engineer into a model workspace (Enterprise)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Data transfer and sync:&lt;/em&gt;&lt;/strong&gt;* move and synchronize data between databases&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Backup and automation:&lt;/em&gt;&lt;/strong&gt;* scheduled backups and batch jobs&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;BI tools:&lt;/em&gt;&lt;/strong&gt;* charts and dashboards (Enterprise)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Data Profiling&lt;/em&gt;&lt;/strong&gt;* was the most interesting part of this test. Profiling all 600 orders and selecting &lt;code&gt;status&lt;/code&gt; showed five distinct statuses, null/non-null statistics, and a value-distribution chart, without writing an aggregation query.&lt;/p&gt;

&lt;p&gt;I also built the orders–order items–products query visually, with a delivered-status filter and the generated SQL alongside the diagram. For the model diagram, I reverse-engineered the database into a workspace; the automatic ER Diagram View is the quicker route.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffqylokjp9ws9hrhm2z33.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffqylokjp9ws9hrhm2z33.png" width="799" height="696"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fioemx5lebk5up2wnfdx0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fioemx5lebk5up2wnfdx0.png" width="799" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Navicat building a joined order query visually and profiling the distribution of five statuses across 600 orders.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Pros&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data profiling combines useful statistics and distributions with the table grid.&lt;/li&gt;
&lt;li&gt;Visual query building, modeling, and migration-related tools in one product family.&lt;/li&gt;
&lt;li&gt;Native desktop versions for Windows, macOS, and Linux.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Cons&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The modeling workspace adds setup.&lt;/li&gt;
&lt;li&gt;Product editions and purchasing channels need careful comparison.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;*&lt;strong&gt;&lt;em&gt;My personal note:&lt;/em&gt;&lt;/strong&gt;* Reverse-engineering into a model workspace took more preparation than I expected for a simple diagram.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* The publisher's US Mac App Store listing for Navicat 18 for MySQL shows $279.99/year. Direct-store licenses and edition terms can differ. &lt;a href="https://apps.apple.com/us/app/navicat-18-for-mysql/id1597453432?mt=12" rel="noopener noreferrer"&gt;Verified annual listing&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. &lt;a href="https://www.dbgate.io/" rel="noopener noreferrer"&gt;DbGate&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;I tested DbGate Premium, which runs as a desktop application or a self-hosted web application. &lt;a href="https://docs.dbgate.io/dbgate/" rel="noopener noreferrer"&gt;Editions and platforms&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn633tya5xkpz0374vo87.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn633tya5xkpz0374vo87.png" alt="MySQL store database relationship diagram in DbGate." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DbGate displaying the MySQL store database's tables and relationships.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Feature highlights&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Query Designer:&lt;/em&gt;&lt;/strong&gt;* join tables visually and see results in the same view&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Charts:&lt;/em&gt;&lt;/strong&gt;* turn results into charts saved with the SQL script&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;ER diagrams:&lt;/em&gt;&lt;/strong&gt;* a relationship view of the database&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Editable results:&lt;/em&gt;&lt;/strong&gt;* change data directly in query output&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Compare tools:&lt;/em&gt;&lt;/strong&gt;* find differences between databases&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;AI assistance:&lt;/em&gt;&lt;/strong&gt;* help writing queries&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Web or desktop:&lt;/em&gt;&lt;/strong&gt;* run it locally or host it for a team&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I used Query Designer to join orders, order items, and products and display delivered-order results in the same workspace. Then I turned the top ten products' delivered-order revenue into a bar chart, setting the category, measure, and aggregation. Because the chart configuration is saved with the SQL script, the chart is reusable.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs91l0fpw4n4zdomxs6tc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs91l0fpw4n4zdomxs6tc.png" width="800" height="638"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8r7k97u4bkv1d0ww1pmr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8r7k97u4bkv1d0ww1pmr.png" width="800" height="623"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DbGate Premium showing visual query joins and a bar chart of the top ten products by delivered-order item revenue.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Pros&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Modern interface with an approachable query-and-results layout.&lt;/li&gt;
&lt;li&gt;Charts are a useful next step after a result grid.&lt;/li&gt;
&lt;li&gt;Desktop and self-hosted web options.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Cons&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Query Designer and charts are Premium features.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;*&lt;strong&gt;&lt;em&gt;My personal note:&lt;/em&gt;&lt;/strong&gt;* The features I liked most, Query Designer and charts, are locked behind Premium.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* Community is free. Premium is $120/year for one user, with a 30-day trial. &lt;a href="https://www.dbgate.io/pricing/" rel="noopener noreferrer"&gt;Pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. &lt;a href="https://webyog.com/product/sqlyog/" rel="noopener noreferrer"&gt;SQLyog&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;I tested the commercial SQLyog trial.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3qkuq8zjkuhn89dr7bjy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3qkuq8zjkuhn89dr7bjy.png" alt="MySQL store tables and foreign-key relationships in SQLyog Schema Designer." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;SQLyog Schema Designer displaying the MySQL store schema and its relationships.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Feature highlights&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Schema Designer:&lt;/em&gt;&lt;/strong&gt;* visual table and relationship design&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Query Builder:&lt;/em&gt;&lt;/strong&gt;* build queries by selecting tables and fields&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Query profiler:&lt;/em&gt;&lt;/strong&gt;* analyze how a query runs&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Schema and data sync:&lt;/em&gt;&lt;/strong&gt;* keep two databases aligned&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Scheduled backups:&lt;/em&gt;&lt;/strong&gt;* automated, recurring exports&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;SSH and HTTP tunneling:&lt;/em&gt;&lt;/strong&gt;* reach servers behind firewalls&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I built the orders–order items–products query visually. It worked, but selecting additional fields and finding the Criteria row took longer than expected, and I had to move the generated SQL into the Query Editor to run it.&lt;/p&gt;

&lt;p&gt;I then worked through the backup wizard. The trial limits each backup job to two objects, so I selected &lt;code&gt;categories&lt;/code&gt; and &lt;code&gt;products&lt;/code&gt;, and the log confirmed both exported successfully.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9bmrrnu966hppxyh5c02.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9bmrrnu966hppxyh5c02.png" width="580" height="516"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yzluqadad4trfuoz8zy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yzluqadad4trfuoz8zy.png" width="799" height="613"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;SQLyog's visual query builder and the successful export of the categories and products tables through its backup wizard.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Pros&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A substantial collection of MySQL administration utilities.&lt;/li&gt;
&lt;li&gt;Visual schema tools and backup automation.&lt;/li&gt;
&lt;li&gt;Perpetual licensing with first-year maintenance included.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Cons&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Native Windows application.&lt;/li&gt;
&lt;li&gt;The query-builder execution workflow is less direct.&lt;/li&gt;
&lt;li&gt;The backup wizard spreads configuration across many screens.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;*&lt;strong&gt;&lt;em&gt;My personal note:&lt;/em&gt;&lt;/strong&gt;* I had to copy the SQL from the visual query builder into the query editor and run it to see the results. The backup wizard also had too many pages for my liking.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* Community is free. The commercial store lists a $299 perpetual license with first-year maintenance. The two-object backup limit applies only to the trial. &lt;a href="https://store.webyog.com/product/sqlyogpricing" rel="noopener noreferrer"&gt;Pricing&lt;/a&gt; · &lt;a href="https://faq.webyog.com/content/33/137/en/are-there-restrictions-in-the-sqlyog-trial-compared-to-the-registered-versions.html" rel="noopener noreferrer"&gt;Trial limits&lt;/a&gt; · &lt;a href="https://webyog.com/article/58-the-sqlyog-query-builder/" rel="noopener noreferrer"&gt;Builder workflow&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. &lt;a href="https://www.heidisql.com/" rel="noopener noreferrer"&gt;HeidiSQL&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;HeidiSQL is free and open source, with a single edition. Native builds are offered for Windows, Linux, and macOS (Apple Silicon); I tested the Windows version. &lt;a href="https://www.heidisql.com/" rel="noopener noreferrer"&gt;Features&lt;/a&gt; · &lt;a href="https://www.heidisql.com/download.php" rel="noopener noreferrer"&gt;Downloads&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F99w0k69srk0si32e4nwk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F99w0k69srk0si32e4nwk.png" alt="HeidiSQL customers table editor showing its column definitions and schema controls." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;HeidiSQL's table editor displaying customer columns, data types, defaults, and constraints.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Feature highlights&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;SQL editor:&lt;/em&gt;&lt;/strong&gt;* completion and formatting&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Table editor:&lt;/em&gt;&lt;/strong&gt;* columns, types, defaults, and constraints in one view&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Indexes and foreign keys:&lt;/em&gt;&lt;/strong&gt;* manage them from the table editor&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;User manager:&lt;/em&gt;&lt;/strong&gt;* accounts and privileges&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Export and transfer:&lt;/em&gt;&lt;/strong&gt;* to SQL files, compressed files, the clipboard, or another server&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Server processes:&lt;/em&gt;&lt;/strong&gt;* see and kill running queries&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Multiple engines:&lt;/em&gt;&lt;/strong&gt;* also MariaDB, PostgreSQL, SQL Server, and SQLite&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The table editor gave a clear view of columns, types, defaults, indexes, and constraints. I also ran the delivered-order query and inspected the &lt;a href="https://www.heidisql.com/help.php" rel="noopener noreferrer"&gt;SQL export&lt;/a&gt; configuration.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5icm5fqri43hy0w85b4k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5icm5fqri43hy0w85b4k.png" width="800" height="569"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fulwp59d854o0emyqeb3e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fulwp59d854o0emyqeb3e.png" width="800" height="569"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;HeidiSQL running a joined order query and configuring SQL export options for the store database.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Pros&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No license fee or paid upgrade for the tools shown.&lt;/li&gt;
&lt;li&gt;Practical table editing and flexible export destinations.&lt;/li&gt;
&lt;li&gt;Native Linux and macOS downloads broaden its usefulness beyond Windows.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Cons&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No built-in ER diagram in the Windows version tested.&lt;/li&gt;
&lt;li&gt;The Windows interface feels dated to me.&lt;/li&gt;
&lt;li&gt;Less suitable when visual modeling is the main requirement.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;*&lt;strong&gt;&lt;em&gt;My personal note:&lt;/em&gt;&lt;/strong&gt;* I missed an ER diagram, and the interface looks old-fashioned next to the others.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* $0. Donations are optional.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why not MySQL Workbench?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.mysql.com/products/workbench/" rel="noopener noreferrer"&gt;MySQL Workbench&lt;/a&gt; is Oracle's free, official MySQL client, so it's the first tool many people try. Oracle rebuilt it as Workbench 26 in 2026. It still has a SQL editor, Visual Explain, and admin tools like server status, user accounts, and performance reports. But when I tested it, the EER diagram and reverse-engineering tools from version 8.0 were gone, and the Database menu now only holds admin options.  &lt;/p&gt;

&lt;p&gt;Opening a table's data just adds a generated &lt;code&gt;SELECT&lt;/code&gt; and its results to the same notebook, mixed in with your other queries, instead of a dedicated data view. Workbench 8.0 still has the modeling tools, but it's end-of-life. For visual work, it's hard to recommend right now.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flh5huv59l8qangh22z33.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flh5huv59l8qangh22z33.png" alt="MySQL Workbench with the mysql_store_demo schema expanded, customer query results, and a CREATE TABLE statement for products_test." width="800" height="592"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;MySQL Workbench shows customer data and SQL statements in a notebook alongside the schema browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which client would I choose?
&lt;/h2&gt;

&lt;p&gt;For most visual MySQL work, I'd start with &lt;a href="https://visualeaf.com" rel="noopener noreferrer"&gt;*&lt;strong&gt;&lt;em&gt;VisuaLeaf&lt;/em&gt;&lt;/strong&gt;*&lt;/a&gt;. Query building, diagrams, profiling, and data comparison are all in one place, and it runs on Windows, macOS, and Linux. It's also useful if you work with MongoDB alongside MySQL.&lt;/p&gt;

&lt;p&gt;For the other tools, it depends on what you do most:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;MySQL development and administration on Windows:&lt;/em&gt;&lt;/strong&gt;* dbForge Studio for MySQL. Standard already includes the profiler and Master-Detail Browser shown here.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Modeling and test data:&lt;/em&gt;&lt;/strong&gt;* DbSchema Pro, especially if the design model is part of your daily work.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Many different databases:&lt;/em&gt;&lt;/strong&gt;* DBeaver, if you can live with its learning curve.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Data-quality checks:&lt;/em&gt;&lt;/strong&gt;* Navicat, for its Data Profiling view.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Visual queries followed by charts:&lt;/em&gt;&lt;/strong&gt;* DbGate Premium.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Browser access or shared hosting:&lt;/em&gt;&lt;/strong&gt;* phpMyAdmin.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;A free, lightweight editor:&lt;/em&gt;&lt;/strong&gt;* HeidiSQL.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Admin and backup tools over interface:&lt;/em&gt;&lt;/strong&gt;* SQLyog.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A few things are worth checking before you buy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Your operating system.&lt;/em&gt;&lt;/strong&gt;* dbForge and SQLyog are Windows-native. On a Mac or Linux, they need extra setup.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Owning or renting.&lt;/em&gt;&lt;/strong&gt;* VisuaLeaf, DbSchema, and SQLyog offer perpetual licenses. dbForge and Navicat sell both perpetual and subscription licenses. DBeaver and DbGate are subscriptions.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;The right edition.&lt;/em&gt;&lt;/strong&gt;* Profilers, comparison tools, and generators are usually in paid editions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My advice is to pick a client around the work you repeat. A paid feature is easy to justify when it replaces a task you'd otherwise do by hand.&lt;/p&gt;

&lt;p&gt;If you want to try the workflow from the first section, &lt;a href="https://visualeaf.com/download" rel="noopener noreferrer"&gt;download VisuaLeaf&lt;/a&gt; and connect it to your own MySQL database during the 14-day Professional trial.&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>sql</category>
      <category>database</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How to Use Databricks SQL With the VisuaLeaf Database Client</title>
      <dc:creator>VisuaLeaf</dc:creator>
      <pubDate>Wed, 25 Nov 2026 21:19:54 +0000</pubDate>
      <link>https://dev.to/visualeaf/how-to-use-databricks-sql-with-the-visualeaf-database-client-3adm</link>
      <guid>https://dev.to/visualeaf/how-to-use-databricks-sql-with-the-visualeaf-database-client-3adm</guid>
      <description>&lt;p&gt;Databricks is a cloud platform teams use to prepare and analyze data. I connected &lt;a href="https://visualeaf.com" rel="noopener noreferrer"&gt;VisuaLeaf&lt;/a&gt; to Databricks to run SQL, find the columns I needed for a join, and compare two versions of a table to see which rows had changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Databricks used for?
&lt;/h2&gt;

&lt;p&gt;A retailer can use &lt;a href="https://docs.databricks.com/aws/en/introduction" rel="noopener noreferrer"&gt;Databricks&lt;/a&gt; to combine orders from its application database with tracking events from shipping carriers. Data engineers build the pipeline that turns those feeds into tables. Analysts can then use SQL to find late shipments, and data scientists can use the same data to train models.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Databricks SQL runs a query
&lt;/h2&gt;

&lt;p&gt;A &lt;a href="https://docs.databricks.com/aws/en/sql/" rel="noopener noreferrer"&gt;*&lt;strong&gt;&lt;em&gt;SQL warehouse&lt;/em&gt;&lt;/strong&gt;*&lt;/a&gt; runs your query and reads the table data from &lt;a href="https://docs.databricks.com/aws/en/getting-started/high-level-architecture" rel="noopener noreferrer"&gt;cloud storage&lt;/a&gt;. *&lt;strong&gt;&lt;em&gt;Unity Catalog&lt;/em&gt;&lt;/strong&gt;* organizes tables into catalogs and schemas and controls who can access them. When you write SQL in VisuaLeaf, it sends the query to the warehouse and displays the results.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4knmmxcmrqpsygetmox7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4knmmxcmrqpsygetmox7.png" width="798" height="132"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Simplified Databricks architecture diagram for a SQL query.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A full table name follows the pattern &lt;code&gt;catalog.schema.table&lt;/code&gt;, as in &lt;code&gt;workspace.fulfillment_demo.shipments&lt;/code&gt;. Use all three parts when staging and production have tables with the same name.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connect VisuaLeaf to a SQL warehouse
&lt;/h2&gt;

&lt;p&gt;In Databricks, go to *&lt;strong&gt;&lt;em&gt;SQL Warehouses&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;, open your warehouse, and copy the *&lt;/em&gt;&lt;strong&gt;Server hostname&lt;/strong&gt;** and *&lt;strong&gt;&lt;em&gt;HTTP Path&lt;/em&gt;&lt;/strong&gt;* from &lt;a href="https://docs.databricks.com/aws/en/integrations/jdbc-oss/configure" rel="noopener noreferrer"&gt;*&lt;strong&gt;&lt;em&gt;Connection details&lt;/em&gt;&lt;/strong&gt;*&lt;/a&gt;. The hostname identifies the workspace. The HTTP path selects the warehouse.&lt;/p&gt;

&lt;p&gt;Create a Databricks connection in VisuaLeaf with these settings:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;What to enter&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Connection Mode&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;SQL Warehouse&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Host&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The server hostname from Databricks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Port&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;443&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;HTTP Path&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The warehouse path beginning with &lt;code&gt;/sql/1.0/warehouses/&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Catalog&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Optional. I used &lt;code&gt;workspace&lt;/code&gt; for the demo.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Sign-in method&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;I used a personal access token. Use the method your workspace allows and your client supports.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For a token-based connection, go to *&lt;strong&gt;&lt;em&gt;Settings → Developer → Access tokens → Manage&lt;/em&gt;&lt;/strong&gt;* in Databricks and &lt;a href="https://docs.databricks.com/aws/en/dev-tools/auth/pat" rel="noopener noreferrer"&gt;generate a token&lt;/a&gt;. Enter it in the *&lt;strong&gt;&lt;em&gt;Personal access token&lt;/em&gt;&lt;/strong&gt;* field in VisuaLeaf.&lt;/p&gt;

&lt;p&gt;Click *&lt;strong&gt;&lt;em&gt;Test Connection&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;, then *&lt;/em&gt;&lt;strong&gt;Save and connect&lt;/strong&gt;&lt;strong&gt;. In the build I tested, JDBC URL **&lt;/strong&gt;Auto-Fill**** put the HTTP path in *&lt;strong&gt;&lt;em&gt;Catalog&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;. If you see that, switch back to *&lt;/em&gt;&lt;strong&gt;SQL Warehouse&lt;/strong&gt;** mode, clear the JDBC parameters from *&lt;strong&gt;&lt;em&gt;Catalog&lt;/em&gt;&lt;/strong&gt;*, and enter the fields manually.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu0sp101d17yq8kuxdz32.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu0sp101d17yq8kuxdz32.png" alt="Databricks SQL Warehouse connection form with separate host and HTTP Path fields." width="800" height="798"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Choose how VisuaLeaf signs in to Databricks below the warehouse connection fields.&lt;/p&gt;

&lt;p&gt;Once you connect, run this to see the catalog and schema your session starts in.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nf"&gt;current_catalog&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;current_schema&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I opened &lt;code&gt;shipment_events&lt;/code&gt; to check what its nested columns looked like in the table browser. Expanding a struct showed the individual fields without having to write a new query. If your connection works and a table query fails, check the three-part name and your &lt;a href="https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/privileges-reference" rel="noopener noreferrer"&gt;Unity Catalog grants&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx2sg50on1k6uihhzflnf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx2sg50on1k6uihhzflnf.png" alt="Databricks shipment events showing array, struct, and map columns in VisuaLeaf." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Expand a nested value to inspect details such as a shipment event’s scan location.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I used VisuaLeaf for
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Compare a source table with staging
&lt;/h3&gt;

&lt;p&gt;In &lt;a href="https://visualeaf.com/features/data-compare/" rel="noopener noreferrer"&gt;*&lt;strong&gt;&lt;em&gt;Data Compare&lt;/em&gt;&lt;/strong&gt;*&lt;/a&gt;, I paired &lt;code&gt;shipment_notes&lt;/code&gt; with &lt;code&gt;shipment_notes_staging&lt;/code&gt; and matched rows on &lt;code&gt;note_id&lt;/code&gt;. The *&lt;strong&gt;&lt;em&gt;Structure&lt;/em&gt;&lt;/strong&gt;* tab flagged a separate difference. The source declares a foreign key from &lt;code&gt;shipment_id&lt;/code&gt; to &lt;code&gt;shipments.shipment_id&lt;/code&gt;. The staging table leaves it out.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F360cpgxw7unuwm6wj3qq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F360cpgxw7unuwm6wj3qq.png" alt="The source says the receiving desk confirmed delivery for note 102. In staging, confirmation is still pending. Note 104 is missing from staging, and note 108 appears only there." width="800" height="535"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;note_id&lt;/code&gt; as the match key so the comparison pairs the same note across both tables.&lt;/p&gt;

&lt;p&gt;Check that the match key is unique on both sides. Databricks treats &lt;a href="https://docs.databricks.com/aws/en/tables/constraints" rel="noopener noreferrer"&gt;primary and foreign keys&lt;/a&gt; on these Unity Catalog Delta tables as informational, so a declared primary key can still have duplicate values. Run this against the staging table and repeat it for the source.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;note_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) AS copies
FROM workspace.fulfillment_demo.shipment_notes_staging
GROUP BY note_id
HAVING COUNT(*)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If it returns rows, resolve the duplicates or pick a key that identifies one record on each side. For an order-line table, that might be the order ID and line number together.&lt;/p&gt;

&lt;h3&gt;
  
  
  Check the join before running it
&lt;/h3&gt;

&lt;p&gt;Catalog Explorer has its own &lt;a href="https://docs.databricks.com/aws/en/catalog-explorer/entity-relationship-diagram" rel="noopener noreferrer"&gt;relationship view&lt;/a&gt; for tables with declared foreign keys. In &lt;a href="https://visualeaf.com/docs/sql-visual-schema" rel="noopener noreferrer"&gt;*&lt;strong&gt;&lt;em&gt;Visual Schema&lt;/em&gt;&lt;/strong&gt;*&lt;/a&gt;, I could move the tables around the canvas and export the model as DBML.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2v9rgy9c2pckr9jcffdb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2v9rgy9c2pckr9jcffdb.png" alt="Order Fulfillment ER diagram linking orders, shipments, carriers, warehouses, and shipment notes" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The diagram shows the columns you need for the join: &lt;code&gt;shipments.carrier_id` and carriers.carrier_id&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Follow the line from&lt;/strong&gt; &lt;em&gt;`_shipments.carrier_id&lt;/em&gt;&lt;code&gt;_ __to__ _&lt;/code&gt;&lt;em&gt;carriers.carrier_id&lt;/em&gt;`_ &lt;strong&gt;to find the columns for the carrier join.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I built the join in &lt;a href="https://visualeaf.com/docs/sql-query-builder" rel="noopener noreferrer"&gt;*&lt;strong&gt;&lt;em&gt;Visual Query Builder&lt;/em&gt;&lt;/strong&gt;*&lt;/a&gt;, filtered to &lt;code&gt;shipment_status = 'Delivered'&lt;/code&gt;, and sorted by &lt;code&gt;delivered_on&lt;/code&gt;. The query returned 3,479 delivered shipments. If you join orders to shipments, an order with two shipments can appear twice. Count distinct order IDs when the metric is orders.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe698nzixj9h2vhlfx37y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe698nzixj9h2vhlfx37y.png" alt="VisuaLeaf Query Builder with shipments and carriers connected on carrier_id" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The SQL preview below the canvas shows the query generated from the join, filter, and sort settings.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Columns &amp;amp; Filters&lt;/em&gt;&lt;/strong&gt;* in the result grid work on the loaded page. To apply those conditions across the table, put them in the query’s &lt;code&gt;WHERE&lt;/code&gt; clause and rerun it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2r98gw03zb50mpd6u6jl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2r98gw03zb50mpd6u6jl.png" alt="Columns &amp;amp; Filters panel with delivery-date and Express service-level filters applied" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The filters match 11 of the 50 rows loaded on this results page.&lt;/p&gt;

&lt;h3&gt;
  
  
  Save a CSV export you can rerun
&lt;/h3&gt;

&lt;p&gt;I saved the &lt;code&gt;orders&lt;/code&gt; export as a &lt;a href="https://visualeaf.com/features/task-manager/" rel="noopener noreferrer"&gt;*&lt;strong&gt;&lt;em&gt;Data Transfer&lt;/em&gt;&lt;/strong&gt;*&lt;/a&gt; job so I could run it again. The table source worked. In a separate test with a custom SQL source, the preview returned rows and the field mapping stayed empty. If that happens and you need a filtered CSV, run your query in the Databricks SQL editor and &lt;a href="https://docs.databricks.com/aws/en/sql/user/sql-editor/results" rel="noopener noreferrer"&gt;download the result&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr95teb777uf4kez41zh6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr95teb777uf4kez41zh6.png" alt="VisuaLeaf Data Transfer job with a Databricks orders table as its source and a CSV file as its target" width="800" height="486"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Set the source type to Table and the target to CSV.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Databricks visualization and dashboard examples
&lt;/h2&gt;

&lt;p&gt;The demo has a &lt;code&gt;carrier_performance&lt;/code&gt; view with one row per carrier. It divides late deliveries by completed deliveries. I kept both counts in the result so I could check the percentage in the chart.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt;
    &lt;span class="n"&gt;carrier_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;delivered_shipments&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;delivered_shipments&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;late_shipments&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;on_time_shipments&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;late_shipments&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nb"&gt;CAST&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;late_delivery_pct&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="kt"&gt;DOUBLE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;late_delivery_pct&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;workspace&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fulfillment_demo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;carrier_performance&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;late_delivery_pct&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;carrier_name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Carrier&lt;/th&gt;
&lt;th&gt;Delivered&lt;/th&gt;
&lt;th&gt;Late&lt;/th&gt;
&lt;th&gt;Late delivery rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Coastline Freight&lt;/td&gt;
&lt;td&gt;862&lt;/td&gt;
&lt;td&gt;195&lt;/td&gt;
&lt;td&gt;22.62%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Summit Ground&lt;/td&gt;
&lt;td&gt;867&lt;/td&gt;
&lt;td&gt;122&lt;/td&gt;
&lt;td&gt;14.07%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cedar Express&lt;/td&gt;
&lt;td&gt;874&lt;/td&gt;
&lt;td&gt;77&lt;/td&gt;
&lt;td&gt;8.81%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bluebird Parcel&lt;/td&gt;
&lt;td&gt;876&lt;/td&gt;
&lt;td&gt;45&lt;/td&gt;
&lt;td&gt;5.14%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In *&lt;strong&gt;&lt;em&gt;Chart Builder&lt;/em&gt;&lt;/strong&gt;*, I used &lt;code&gt;carrier_name&lt;/code&gt; for the category and &lt;code&gt;late_delivery_pct&lt;/code&gt; for the bar height. Keeping the chart beside the results in &lt;a href="https://visualeaf.com/features/split-panel-views/" rel="noopener noreferrer"&gt;*&lt;strong&gt;&lt;em&gt;Split Panel Views&lt;/em&gt;&lt;/strong&gt;*&lt;/a&gt; made it easy to check the 22.62% against its denominator.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpf8ypiigwzq04b5ktypr.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpf8ypiigwzq04b5ktypr.webp" alt="Bar chart comparing the late delivery rates of four carriers, with Coastline Freight highest" width="800" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Coastline Freight had the highest late delivery rate in the demo at 22.62%, with 195 late shipments out of 862 delivered.&lt;/p&gt;

&lt;p&gt;You could use the same data in a *&lt;strong&gt;&lt;em&gt;Databricks AI/BI dashboard&lt;/em&gt;&lt;/strong&gt;* to track the weekly late delivery rate or break it down by service level. Group by the promised date to report on shipments due that week. Before sharing, check &lt;a href="https://docs.databricks.com/aws/en/dashboards/share/share" rel="noopener noreferrer"&gt;whose data permissions the dashboard uses&lt;/a&gt;. Databricks can run its queries with the publisher’s or the viewer’s permissions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Connect Power BI to Databricks
&lt;/h3&gt;

&lt;p&gt;If your team reports in Power BI, open *&lt;strong&gt;&lt;em&gt;Get data&lt;/em&gt;&lt;/strong&gt;* in Power BI Desktop, choose the &lt;a href="https://docs.databricks.com/aws/en/partners/bi/power-bi/desktop" rel="noopener noreferrer"&gt;Databricks connector&lt;/a&gt;, and enter the warehouse hostname and HTTP path. *&lt;strong&gt;&lt;em&gt;Import&lt;/em&gt;&lt;/strong&gt;* loads a copy into Power BI and updates it on refresh. *&lt;strong&gt;&lt;em&gt;DirectQuery&lt;/em&gt;&lt;/strong&gt;* queries Databricks when people interact with the report.&lt;/p&gt;

&lt;h2&gt;
  
  
  Databricks SQL with Python
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://docs.databricks.com/aws/en/dev-tools/python-sql-connector" rel="noopener noreferrer"&gt;*&lt;strong&gt;&lt;em&gt;Databricks SQL Connector for Python&lt;/em&gt;&lt;/strong&gt;*&lt;/a&gt; is for scripts that send SQL to a warehouse and fetch the result. This example uses a personal access token from an environment variable. Install &lt;code&gt;databricks-sql-connector&lt;/code&gt; and set the three connection variables before running it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;environ&lt;/span&gt;

&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;databricks&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sql&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;sql&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;server_hostname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"DATABRICKS_SERVER_HOSTNAME"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;http_path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"DATABRICKS_HTTP_PATH"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;access_token&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"DATABRICKS_TOKEN"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;connection&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;connection&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;cursor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;cursor&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;cursor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"SELECT current_catalog(), current_schema()"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cursor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetchone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A &lt;a href="https://docs.databricks.com/aws/en/udf/unity-catalog" rel="noopener noreferrer"&gt;*&lt;strong&gt;&lt;em&gt;Unity Catalog Python UDF&lt;/em&gt;&lt;/strong&gt;*&lt;/a&gt; executes the Python on Databricks compute. I called &lt;code&gt;delivery_outcome&lt;/code&gt; from VisuaLeaf’s SQL Editor, passing &lt;code&gt;DATEDIFF(delivered_on, promised_on)&lt;/code&gt; to classify shipments as on time, late, or in transit. VisuaLeaf sent the SQL. Databricks ran the function on the warehouse. Use a serverless or Pro SQL warehouse for this kind of UDF.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which Databricks tool should you open?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Where I’d start&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Manage permissions, notebooks, or pipelines&lt;/td&gt;
&lt;td&gt;Databricks web workspace&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Compare two versions of a table or inspect a join&lt;/td&gt;
&lt;td&gt;VisuaLeaf&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Publish a dashboard for colleagues in Databricks&lt;/td&gt;
&lt;td&gt;Databricks AI/BI dashboards&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build a report for a team that already uses Power BI&lt;/td&gt;
&lt;td&gt;Power BI Desktop&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Run SQL from your own script&lt;/td&gt;
&lt;td&gt;Databricks SQL Connector for Python&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For a first run with your own data, &lt;a href="https://visualeaf.com/download" rel="noopener noreferrer"&gt;download VisuaLeaf&lt;/a&gt; and start with source and staging tables from a refresh you can verify.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is VisuaLeaf a Databricks App?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://docs.databricks.com/aws/en/dev-tools/databricks-apps/" rel="noopener noreferrer"&gt;*&lt;strong&gt;&lt;em&gt;Databricks Apps&lt;/em&gt;&lt;/strong&gt;*&lt;/a&gt; is a service for hosting custom data and AI apps on Databricks. &lt;a href="https://visualeaf.com" rel="noopener noreferrer"&gt;VisuaLeaf&lt;/a&gt; is a SQL client installed on your desktop. It connects to a warehouse to run queries and browse your data.&lt;/p&gt;

</description>
      <category>databricks</category>
      <category>sql</category>
      <category>database</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>SQL Server Management on Windows, Mac &amp; Linux with VisuaLeaf</title>
      <dc:creator>VisuaLeaf</dc:creator>
      <pubDate>Tue, 24 Nov 2026 08:22:17 +0000</pubDate>
      <link>https://dev.to/visualeaf/sql-server-management-on-windows-mac-linux-with-visualeaf-5dgl</link>
      <guid>https://dev.to/visualeaf/sql-server-management-on-windows-mac-linux-with-visualeaf-5dgl</guid>
      <description>&lt;p&gt;A column definition, a query, an execution plan, and a migration job each describe the same data from a different angle. In SQL Server work, you usually need all four open at once. This article walks through one SQL Server database in &lt;a href="https://visualeaf.com/database/mssql/" rel="noopener noreferrer"&gt;VisuaLeaf&lt;/a&gt; to show where its workspace helps.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://visualeaf.com" rel="noopener noreferrer"&gt;VisuaLeaf&lt;/a&gt; brings these tasks into a desktop workspace with a SQL editor, visual query builder, table management, schema diagrams, profiling, data transfer, comparison, and charts. The screenshots here illustrate those workflows from SQL Server testing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Establish the connection and permission boundary
&lt;/h2&gt;

&lt;p&gt;A connection needs a server address, port, database, and supported authentication method. The selected database and schema also determine which objects your queries reference.&lt;/p&gt;

&lt;p&gt;The connection dialog exposes the following authentication options.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Authentication family&lt;/th&gt;
&lt;th&gt;Options shown in the dialog&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SQL Server&lt;/td&gt;
&lt;td&gt;SQL Server login&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows&lt;/td&gt;
&lt;td&gt;NTLM with domain credentials, Kerberos, or this computer's login&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Microsoft Entra user sign-in&lt;/td&gt;
&lt;td&gt;Password or sign in with browser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Microsoft Entra workload identity&lt;/td&gt;
&lt;td&gt;Service principal or managed identity&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Microsoft Entra default&lt;/td&gt;
&lt;td&gt;Default credentials, including the Azure CLI or environment configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj1cmkg224riu8anhh1i6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj1cmkg224riu8anhh1i6.png" alt="VisuaLeaf SQL Server sign-in menu listing SQL login, Windows NTLM, Kerberos, integrated Windows login, and Microsoft Entra authentication options." width="800" height="798"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;VisuaLeaf’s connection dialog for SQL Server&lt;/p&gt;

&lt;p&gt;Or you can choose different sign-in methods:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvgj82jl79egoz38l1de3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvgj82jl79egoz38l1de3.png" alt="The connection dialog lists SQL Server logins, Windows authentication, and several Microsoft Entra sign-in methods." width="799" height="238"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The connection dialog lists SQL Server logins, Windows authentication, and several Microsoft Entra sign-in methods.&lt;/p&gt;

&lt;p&gt;The completed connection test used a SQL Server login. Validate Windows authentication against your domain and &lt;a href="https://learn.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-overview?view=azuresql" rel="noopener noreferrer"&gt;Microsoft Entra authentication&lt;/a&gt; against your tenant, including its MFA requirements.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://learn.microsoft.com/en-us/sql/relational-databases/security/permissions-database-engine?view=sql-server-ver17" rel="noopener noreferrer"&gt;SQL Server permissions&lt;/a&gt; govern access to objects and operations. A reporting account can receive access to selected tables or views through database roles and grants. A client-side read-only setting adds an application control on top of those grants.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inspect tables, constraints, and relationships
&lt;/h2&gt;

&lt;p&gt;A column's data type is only part of its definition. Before changing a table or writing data, inspect the properties that SQL Server uses to validate each operation.&lt;/p&gt;

&lt;p&gt;VisuaLeaf's &lt;a href="https://visualeaf.com/features/table-management/" rel="noopener noreferrer"&gt;Table Management&lt;/a&gt; exposes column definitions, keys, indexes, and constraints, with generated DDL available for inspection. Read the generated statement when changing a definition so you can see the database operation behind the form.&lt;/p&gt;

&lt;p&gt;An &lt;a href="https://visualeaf.com/docs/sql-visual-schema" rel="noopener noreferrer"&gt;ER diagram&lt;/a&gt; provides the relationship view. Primary and foreign keys show how tables connect and which joins follow declared constraints. Indexes need separate inspection. SQL Server does not automatically create an index on the referencing columns when you add a &lt;a href="https://learn.microsoft.com/en-us/sql/relational-databases/tables/primary-and-foreign-key-constraints?view=sql-server-ver17" rel="noopener noreferrer"&gt;foreign key&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpftivp13odf7zlutnq5d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpftivp13odf7zlutnq5d.png" alt="VisuaLeaf SQL Server ER diagram showing eight related tables with column types, primary keys, and foreign-key connections." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;An ER diagram exposes primary keys, foreign keys, column types, and relationships across a SQL Server schema.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build queries visually and retain access to T-SQL
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://visualeaf.com/docs/sql-query-builder" rel="noopener noreferrer"&gt;visual query builder&lt;/a&gt; represents tables, join conditions, selected columns, filters, aggregates, and sorting on a canvas. Generated SQL changes with those settings, making the resulting statement available for review.&lt;/p&gt;

&lt;p&gt;Join cardinality still matters. A one-to-many join can repeat a parent row before aggregation. Review the join columns and the unit being counted when adding another table.&lt;/p&gt;

&lt;p&gt;Joins drawn along a foreign key also depend on indexing. SQL Server doesn’t create an index on the referencing columns, so a join that looks right on the canvas can still scan the whole child table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;dbo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;OrderLine&lt;/span&gt;
  &lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="k"&gt;CONSTRAINT&lt;/span&gt; &lt;span class="nc"&gt;FK_OrderLine_Order&lt;/span&gt;
  &lt;span class="k"&gt;FOREIGN&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;OrderId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;REFERENCES&lt;/span&gt; &lt;span class="n"&gt;dbo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="k"&gt;Order&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;OrderId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- The constraint does not create this index. Add it yourself:&lt;/span&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;INDEX&lt;/span&gt; &lt;span class="nc"&gt;IX_OrderLine_OrderId&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;dbo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;OrderLine&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;OrderId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A table can also supply a filter or join condition without contributing a selected output column. Its presence in the query graph can therefore remain necessary even when its field list is empty.&lt;/p&gt;

&lt;p&gt;Use the &lt;a href="https://visualeaf.com/docs/sql-editor" rel="noopener noreferrer"&gt;SQL editor&lt;/a&gt; for CTEs, window functions, multi-statement scripts, and other T-SQL that needs direct editing. The tested workflow confirmed SQL generation from the visual builder. Start visually, then switch to the editor when the query needs more than the canvas can express.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9ixn2f4yz7zcy8lnjqeb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9ixn2f4yz7zcy8lnjqeb.png" alt="VisuaLeaf Visual Query Builder showing three joined SQL Server tables, a Brooklyn filter, request counts, and generated T-SQL." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Build joins, filters, and aggregations visually while reviewing the generated T-SQL.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understand how row editing identifies and changes data
&lt;/h2&gt;

&lt;p&gt;Before a grid can update a row, it needs a reliable way to find that row in the table. VisuaLeaf uses the primary key: a table with a key opens as editable, while a result that can’t be traced back to a single table and key opens read-only.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Note:&lt;/em&gt;&lt;/strong&gt;* Inline edits are written to the database as soon as you confirm them. For changes you may need to roll back, write the &lt;code&gt;UPDATE&lt;/code&gt; in the &lt;a href="https://visualeaf.com/features/sql-editor/" rel="noopener noreferrer"&gt;SQL editor&lt;/a&gt; and check its auto-commit and transaction settings first.&lt;/p&gt;

&lt;p&gt;Identity columns are handled for you. The Insert Row form marks them *&lt;strong&gt;&lt;em&gt;AI&lt;/em&gt;&lt;/strong&gt;* (auto-increment) and leaves them as &lt;strong&gt;Auto-generated&lt;/strong&gt;, so SQL Server assigns the value. The AI badge is the useful signal here: a key icon only tells you a column is the primary key, not that SQL Server generates its value. If you insert an explicit value through T-SQL instead, SQL Server rejects it with Msg 544 unless &lt;code&gt;IDENTITY_INSERT&lt;/code&gt; is turned on.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7eipqk78z3ry4323t4td.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7eipqk78z3ry4323t4td.png" alt="Visul form to insert a new row in the table." width="800" height="356"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Insert Row form marks the identity column as auto-generated, so SQL Server assigns its value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For more control,&lt;/strong&gt; &lt;a href="https://visualeaf.com/features/sql-editor/" rel="noopener noreferrer"&gt;&lt;strong&gt;Open in SQL Editor&lt;/strong&gt;&lt;/a&gt; &lt;strong&gt;moves the insert into the editor, where you can review the statement and run it inside a transaction.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with SQL Server features in their database context
&lt;/h2&gt;

&lt;p&gt;T-SQL work can involve views, stored procedures, functions, and triggers as well as tables. Their definitions can contain filters, calculations, and write behavior that matter when reviewing an application database. VisuaLeaf lets you &lt;a href="https://visualeaf.com/database/mssql/" rel="noopener noreferrer"&gt;Server objects&lt;/a&gt; and edit their source alongside its query tools.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://learn.microsoft.com/en-us/sql/relational-databases/tables/temporal/overview?view=sql-server-ver17" rel="noopener noreferrer"&gt;System-versioned temporal tables&lt;/a&gt; introduce another distinction. SQL Server maintains validity periods and row history through generated &lt;code&gt;datetime2&lt;/code&gt; columns and system versioning. A temporal query can return several versions of one logical record.&lt;/p&gt;

&lt;p&gt;The temporal test displayed those versions with their validity periods. Review the system-time interval and UTC timestamps when interpreting history results, and distinguish the current row from its recorded versions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxt4abnyrorj1ban2qebu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxt4abnyrorj1ban2qebu.png" alt="VisuaLeaf split view showing a SQL Server temporal-table definition and three request versions with status and validity timestamps." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Inspect the Open, In Progress, and Closed versions of a request using SQL Server’s temporal-table history.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connect profiling statistics to execution plans
&lt;/h2&gt;

&lt;p&gt;Profiling and execution plans answer different questions. Statement statistics show execution frequency and accumulated resource use. A plan describes the operators SQL Server uses to access and process rows.&lt;/p&gt;

&lt;p&gt;VisuaLeaf's &lt;a href="https://visualeaf.com/docs/sql-profiling" rel="noopener noreferrer"&gt;profiler&lt;/a&gt; presents statement-level execution statistics and lets you inspect a selected statement. Total time, average duration, execution count, and maximum duration each show a different view of the workload. Match the displayed statement to the query you intend to investigate, since catalog and monitoring queries can also appear in the list.&lt;/p&gt;

&lt;p&gt;The graphical plan makes scans, seeks, joins, sorts, aggregates, and spools easier to trace. Identify whether you are viewing an &lt;a href="https://learn.microsoft.com/en-us/sql/relational-databases/performance/display-and-save-execution-plans" rel="noopener noreferrer"&gt;estimated or actual plan&lt;/a&gt;. Estimated costs describe optimizer estimates. Actual plans add runtime information that can help explain differences in row counts and execution behavior.&lt;/p&gt;

&lt;p&gt;For &lt;a href="https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-exec-query-stats-transact-sql?view=sql-server-ver17" rel="noopener noreferrer"&gt;SQL Server's cached statement statistics&lt;/a&gt;, the lifetime of the counters is tied to the cached plan. Plan eviction can remove the corresponding statistics. In the tested profiler, the Runs tab reported aggregate totals, and chart intervals reflected activity between refreshes. Interpret the time window and counter lifetime before comparing measurements.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fudfbuvpawvxobx3wjtps.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fudfbuvpawvxobx3wjtps.png" alt="VisuaLeaf SQL Server Query Profiler showing an activity chart, statement execution statistics, and a graphical query plan." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The profiler combines statement-level statistics with a graphical execution plan for the selected query.&lt;/p&gt;

&lt;h2&gt;
  
  
  Move data between engines and verify the result
&lt;/h2&gt;

&lt;p&gt;Cross-database transfer requires explicit source, target, field, and type mappings. SQL Server types such as &lt;code&gt;smallint&lt;/code&gt; and &lt;code&gt;nvarchar&lt;/code&gt; need compatible target definitions. Review numeric ranges, text lengths, nullability, and generated-value behavior alongside the column names.&lt;/p&gt;

&lt;p&gt;VisuaLeaf's &lt;a href="https://visualeaf.com/features/task-manager/" rel="noopener noreferrer"&gt;transfer editor&lt;/a&gt; exposes source and target configuration, field mapping, transformations, and handling of existing rows. The SQL Server-to-PostgreSQL test completed a lookup-table transfer and displayed the target rows beside the job.&lt;/p&gt;

&lt;p&gt;Use a stable key for the subsequent &lt;a href="https://visualeaf.com/docs/data-compare" rel="noopener noreferrer"&gt;comparison&lt;/a&gt;. Match logical records by their identifying columns, then inspect changed values and rows present on only one side. Verify both row counts and content. Review schema objects such as indexes, defaults, foreign keys, and temporal definitions separately when planning a full migration.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdtc3td5b75fwad47s1h2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdtc3td5b75fwad47s1h2.png" alt="VisuaLeaf split view with a completed SQL Server-to-PostgreSQL data transfer and the target table showing a 94-row count." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A completed SQL Server-to-PostgreSQL transfer is displayed beside the target table for inspection.&lt;/p&gt;

&lt;h2&gt;
  
  
  Create charts from query results
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://visualeaf.com/docs/chart-builder" rel="noopener noreferrer"&gt;Chart Builder&lt;/a&gt; maps SQL result columns to categories, numeric measures, and other visual dimensions. This keeps the query's joins, filters, and aggregation attached to the result being presented.&lt;/p&gt;

&lt;p&gt;Check the aggregation at both stages. If SQL already returns a count per category, the chart should use that numeric count as its measure. Counting the returned result rows would measure the number of categories instead.&lt;/p&gt;

&lt;p&gt;Also check the denominator behind percentages. A chart built from a limited result set describes that selected set. Its title and labels should make the scope clear.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbiyd5agqm7encye334cy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbiyd5agqm7encye334cy.png" alt="VisuaLeaf Chart Builder displaying a donut chart of five SQL query result categories with a total of 153 requests." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The chart uses a SQL query result, with categories mapped to slices and an aggregated numeric column mapped to size.&lt;/p&gt;

&lt;h3&gt;
  
  
  Make VisuaLeaf your SQL Server workspace
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://visualeaf.com/download" rel="noopener noreferrer"&gt;VisuaLeaf&lt;/a&gt; brings SQL Server querying, schema inspection, data editing, performance investigation, reporting, and cross-database work into one visual workspace. You don’t have to switch between tools: you can write a query, inspect its plan, chart the result, and move the data to PostgreSQL in the same place.&lt;/p&gt;

&lt;p&gt;It also runs where your team works. VisuaLeaf has &lt;a href="https://visualeaf.com/database/mssql/" rel="noopener noreferrer"&gt;Windows, macOS, and Linux clients&lt;/a&gt;, so everyone gets the same interface, whatever system they use. &lt;a href="https://learn.microsoft.com/en-us/ssms/system-requirements" rel="noopener noreferrer"&gt;SSMS runs only on Windows&lt;/a&gt;, so macOS and Linux users need another tool.&lt;/p&gt;

&lt;p&gt;This review focused on day-to-day development and analysis. Server administration, such as backup and restore, SQL Server Agent jobs, and Microsoft Entra sign-in with MFA, wasn’t part of the testing. If your work depends on those, try them against your own server during setup.&lt;/p&gt;

&lt;p&gt;For writing queries, understanding schemas, tuning statements, and moving data between engines, VisuaLeaf gives you a single cross-platform workspace with the SQL always visible behind the visual tools.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://visualeaf.com/download" rel="noopener noreferrer"&gt;*&lt;strong&gt;&lt;em&gt;Download VisuaLeaf&lt;/em&gt;&lt;/strong&gt;*&lt;/a&gt; and connect it to your SQL Server database to try it.&lt;/p&gt;

</description>
      <category>sql</category>
      <category>database</category>
      <category>software</category>
      <category>sqlserver</category>
    </item>
    <item>
      <title>What's New in PostgreSQL 19: 10 Features With Visual Results</title>
      <dc:creator>VisuaLeaf</dc:creator>
      <pubDate>Fri, 20 Nov 2026 16:36:38 +0000</pubDate>
      <link>https://dev.to/visualeaf/whats-new-in-postgresql-19-10-features-with-visual-results-cda</link>
      <guid>https://dev.to/visualeaf/whats-new-in-postgresql-19-10-features-with-visual-results-cda</guid>
      <description>&lt;p&gt;PostgreSQL 19 is out, released on &lt;a href="https://www.postgresql.org/docs/19/release-19.html" rel="noopener noreferrer"&gt;November 19, 2026&lt;/a&gt;. So what does it actually bring? Instead of summarizing the release notes, we installed it next to PostgreSQL 18 and tried the new features ourselves.&lt;/p&gt;

&lt;p&gt;This release is less about new syntax and more about control: over maintenance, over the query planner, and over replication. Some results were easy to see right away. A table we had bloated by deleting 80% of its rows went from 70 MB to 14 MB with the new &lt;code&gt;REPACK&lt;/code&gt; command. The same &lt;code&gt;NOT IN&lt;/code&gt; query got a better plan without changing a line of SQL.&lt;/p&gt;

&lt;p&gt;We ran every test in &lt;a href="https://visualeaf.com/features/sql-editor/" rel="noopener noreferrer"&gt;VisuaLeaf's SQL Editor&lt;/a&gt;, with PostgreSQL 19 (its final release candidate, RC 2) and PostgreSQL 18.7 open in split editors, running the same SQL on both. These are hands-on lab tests on small datasets, not performance benchmarks.&lt;/p&gt;

&lt;p&gt;What we tested&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;What we tested&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;REPACK&lt;/td&gt;
&lt;td&gt;Reclaiming space after deleting 80% of a table&lt;/td&gt;
&lt;td&gt;70 MB → 14 MB, same 24,000 rows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;NOT IN → anti join&lt;/td&gt;
&lt;td&gt;The same NOT IN query on 18 and 19&lt;/td&gt;
&lt;td&gt;Hashed subplan → Hash Anti Join&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;LZ4 by default&lt;/td&gt;
&lt;td&gt;Storing the same 32 KB value on both versions&lt;/td&gt;
&lt;td&gt;419 bytes → 179 bytes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Plan advice&lt;/td&gt;
&lt;td&gt;Steering the planner, then stashing advice by query ID&lt;/td&gt;
&lt;td&gt;Advice applied and marked &lt;code&gt;matched&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Auto-scaling I/O workers&lt;/td&gt;
&lt;td&gt;Watching the worker pool under repeated scans&lt;/td&gt;
&lt;td&gt;2 → 8 → back to 2 workers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Logical decoding, no restart&lt;/td&gt;
&lt;td&gt;Creating a logical slot on a &lt;code&gt;replica&lt;/code&gt; server&lt;/td&gt;
&lt;td&gt;Effective WAL level became &lt;code&gt;logical&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Sequence replication&lt;/td&gt;
&lt;td&gt;Syncing a sequence to a subscriber&lt;/td&gt;
&lt;td&gt;Both sides at 2000 after refresh&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Autovacuum scores &amp;amp; parallel workers&lt;/td&gt;
&lt;td&gt;Ranking tables and vacuuming indexes in parallel&lt;/td&gt;
&lt;td&gt;Top score 6.93; 1 parallel worker launched&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;WAIT FOR LSN&lt;/td&gt;
&lt;td&gt;Read-your-writes on a physical standby&lt;/td&gt;
&lt;td&gt;Standby returned &lt;code&gt;success&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;IGNORE NULLS &amp;amp; ON CONFLICT DO SELECT&lt;/td&gt;
&lt;td&gt;Two everyday SQL additions&lt;/td&gt;
&lt;td&gt;Last known value; existing row returned&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Upgrade checklist&lt;/td&gt;
&lt;td&gt;Default settings, 18 vs 19&lt;/td&gt;
&lt;td&gt;JIT off, LZ4, 128 locks, removed settings&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The test environment
&lt;/h2&gt;

&lt;p&gt;Everything ran in Docker, inside a dedicated &lt;code&gt;pg19_lab&lt;/code&gt; schema.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Connection&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;PostgreSQL 18.7&lt;/td&gt;
&lt;td&gt;Baseline for plans, compression and settings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PostgreSQL 19 (primary)&lt;/td&gt;
&lt;td&gt;Writes and most feature tests&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PostgreSQL 19 (subscriber database)&lt;/td&gt;
&lt;td&gt;Logical sequence synchronization&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PostgreSQL 19 (physical standby)&lt;/td&gt;
&lt;td&gt;Replay and &lt;code&gt;WAIT&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;To start the two comparison servers (with Docker running; the passwords are local demo credentials):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run -d --name pg18-demo -p 127.0.0.1:5548:5432 -e &lt;span class="nv"&gt;POSTGRES_PASSWORD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;pg18demo -e &lt;span class="nv"&gt;POSTGRES_DB&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;pg18_demo postgres:18.7
docker run -d --name pg19-demo -p 127.0.0.1:5549:5432 -e &lt;span class="nv"&gt;POSTGRES_PASSWORD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;pg19demo -e &lt;span class="nv"&gt;POSTGRES_DB&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;pg19_demo postgres:19
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In VisuaLeaf's &lt;a href="https://visualeaf.com/docs/connection-manager" rel="noopener noreferrer"&gt;Connection Manager&lt;/a&gt;, add a PostgreSQL connection for each one: host &lt;code&gt;localhost&lt;/code&gt;, the port above, user &lt;code&gt;postgres&lt;/code&gt;. Then confirm which server you're on:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nf"&gt;current_setting&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'server_version'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;postgres_version&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nf"&gt;current_database&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;database_name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create the lab schema on both servers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;SCHEMA&lt;/span&gt; &lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;EXISTS&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep auto-commit on, and run maintenance commands (&lt;code&gt;VACUUM&lt;/code&gt;, &lt;code&gt;REPACK (CONCURRENTLY)&lt;/code&gt;, &lt;code&gt;ALTER SYSTEM&lt;/code&gt;) as separate statements.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. REPACK reclaims space after large deletes
&lt;/h2&gt;

&lt;p&gt;Audit and event tables are a classic case: old rows get deleted, but the space they leave stays inside the table file. &lt;a href="https://visualeaf.com/database/postgresql/" rel="noopener noreferrer"&gt;PostgreSQL&lt;/a&gt; can reuse that space, but it doesn't give it back to the operating system.&lt;/p&gt;

&lt;p&gt;We created 120,000 events and deleted four out of every five:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;audit_events&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;audit_events&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;md5&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="nf"&gt;generate_series&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;120000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="nf"&gt;g&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;DELETE&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;audit_events&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After each step, we measured row count and total size (table plus indexes):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;count&lt;/span&gt;&lt;span class="cm"&gt;(*) AS event_count,
       pg_size_pretty(pg_total_relation_size('pg19_lab.audit_events')) AS total_size
FROM pg19_lab.audit_events;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then a regular vacuum, followed by the new native command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;VACUUM&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;audit_events&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="no"&gt;REPACK&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;CONCURRENTLY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;audit_events&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Rows&lt;/th&gt;
&lt;th&gt;Total size&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Initial data&lt;/td&gt;
&lt;td&gt;120,000&lt;/td&gt;
&lt;td&gt;70 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;After DELETE&lt;/td&gt;
&lt;td&gt;24,000&lt;/td&gt;
&lt;td&gt;70 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;After VACUUM&lt;/td&gt;
&lt;td&gt;24,000&lt;/td&gt;
&lt;td&gt;70 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;After REPACK (CONCURRENTLY)&lt;/td&gt;
&lt;td&gt;24,000&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;14 MB&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjh8l5u699g1cmkfceu1v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjh8l5u699g1cmkfceu1v.png" alt="VisuaLeaf SQL Editor running REPACK (CONCURRENTLY) on audit_events, with the result showing 24,000 rows and a total size of 14 MB" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Same 24,000 rows, 80% less space: REPACK took the table from 70 MB down to 14 MB.&lt;/p&gt;

&lt;p&gt;Until now, this needed &lt;code&gt;VACUUM FULL&lt;/code&gt; (which blocks the table) or the third-party &lt;code&gt;pg_repack&lt;/code&gt; extension. &lt;code&gt;REPACK (CONCURRENTLY)&lt;/code&gt; keeps the table readable and writable for most of the rewrite and takes a brief &lt;code&gt;ACCESS EXCLUSIVE&lt;/code&gt; lock only for the final swap.&lt;/p&gt;

&lt;p&gt;Before using it in production, note that it needs a primary key or a suitable replica identity, enough free disk for a full copy of the table, and must run outside a transaction block. See the &lt;a href="https://www.postgresql.org/docs/19/sql-repack.html" rel="noopener noreferrer"&gt;REPACK documentation&lt;/a&gt;. Routine vacuuming is still required.&lt;/p&gt;

&lt;h3&gt;
  
  
  Follow-up: concurrent writes and the final swap
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Updated November 24, 2026.&lt;/strong&gt; A reader asked whether the final swap blocked writes. I ran a follow-up using a larger table, with a separate session repeatedly updating and committing one existing row while &lt;code&gt;REPACK (CONCURRENTLY, VERBOSE)&lt;/code&gt; ran.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Measurement&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Rows before and after REPACK&lt;/td&gt;
&lt;td&gt;200,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total size before REPACK&lt;/td&gt;
&lt;td&gt;580 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total size after REPACK&lt;/td&gt;
&lt;td&gt;116 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Space reduction&lt;/td&gt;
&lt;td&gt;80%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total REPACK execution time&lt;/td&gt;
&lt;td&gt;7.321 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recorded lock wait for one UPDATE&lt;/td&gt;
&lt;td&gt;33.334 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foqqigjzpkunq0vw2887h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foqqigjzpkunq0vw2887h.png" alt="Before Repack" width="705" height="975"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvf4iw3fgi0ihc58qt386.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvf4iw3fgi0ihc58qt386.png" alt="After Repack" width="800" height="840"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Writes continued during the operation, but one UPDATE was briefly blocked near its completion. PostgreSQL’s server logs identify writer session &lt;code&gt;733&lt;/code&gt; waiting for a table lock held by REPACK session &lt;code&gt;749&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;2026-11-24 10:51:16.406 UTC [733] LOG:  process 733 still waiting for RowExclusiveLock on relation 32769 of database 16384 after 2.036 ms
2026-11-24 10:51:16.406 UTC [733] DETAIL:  Process holding the lock: 749. Wait queue: 733.
2026-11-24 10:51:16.427 UTC [733] LOG:  process 733 acquired RowExclusiveLock on relation 32769 of database 16384 after 33.334 ms
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The log’s SQL context identifies the blocked statement:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;repack_write_demo&lt;/span&gt;
&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;touches&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;touches&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The observed write lock wait was 33.334 ms in this single-writer local test.&lt;/strong&gt; That measures the wait experienced by this UPDATE, rather than the exact duration of REPACK’s final exclusive lock. The 7.321-second figure is the total REPACK execution time.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The planner turns NOT IN into an anti join
&lt;/h2&gt;

&lt;p&gt;"Find customers who never placed an order" is often written with &lt;code&gt;NOT IN&lt;/code&gt;. PostgreSQL 19 can now rewrite that into an anti join when it can prove that no nulls are involved.&lt;/p&gt;

&lt;p&gt;We loaded identical data on both versions: 10,000 customers and 4,000 orders, with a &lt;code&gt;NOT NULL&lt;/code&gt; customer reference.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_customers&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="kt"&gt;integer&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_orders&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="kt"&gt;integer&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;customer_id&lt;/span&gt; &lt;span class="kt"&gt;integer&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;REFERENCES&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;demo_customers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_customers&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="nf"&gt;generate_series&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="nf"&gt;g&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_orders&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="nf"&gt;generate_series&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="nf"&gt;g&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;ANALYZE&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_customers&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;ANALYZE&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_orders&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same query on both servers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;EXPLAIN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;ANALYZE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;COSTS&lt;/span&gt; &lt;span class="no"&gt;OFF&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;TIMING&lt;/span&gt; &lt;span class="no"&gt;OFF&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_customers&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;customer_id&lt;/span&gt;
    &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_orders&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;PostgreSQL 18 used a sequential scan with a hashed subplan filter. PostgreSQL 19 chose a &lt;strong&gt;Hash Anti Join&lt;/strong&gt;. Both returned the same 6,000 customers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo8p35hifn8iggmjupvkg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo8p35hifn8iggmjupvkg.png" alt="Side-by-side EXPLAIN output in VisuaLeaf: PostgreSQL 18.7 uses a hashed subplan filter, PostgreSQL 19 uses a Hash Anti Join" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Same SQL, different plan: PostgreSQL 19 turns the NOT IN query into a Hash Anti Join.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;NOT NULL&lt;/code&gt; constraint is what makes this possible. &lt;code&gt;NOT IN&lt;/code&gt; behaves differently when nulls are present, so the planner applies the rewrite only when it can prove they aren't.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. LZ4 is the new default TOAST compression
&lt;/h2&gt;

&lt;p&gt;TOAST is how PostgreSQL stores and compresses large values. LZ4 has been available since PostgreSQL 14, but the default was &lt;code&gt;pglz&lt;/code&gt;. In PostgreSQL 19, the default is &lt;code&gt;lz4&lt;/code&gt; (when the server is built with LZ4 support, as the official images are).&lt;/p&gt;

&lt;p&gt;We stored the same 32,768-byte text value on both servers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_toast&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_toast&lt;/span&gt;
&lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;md5&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'audit-event'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1024&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nf"&gt;current_setting&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'default_toast_compression'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;default_codec&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nf"&gt;pg_column_compression&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;actual_codec&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nf"&gt;octet_length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;original_bytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nf"&gt;pg_column_size&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;stored_bytes&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_toast&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Server&lt;/th&gt;
&lt;th&gt;Default&lt;/th&gt;
&lt;th&gt;Actual codec&lt;/th&gt;
&lt;th&gt;Original&lt;/th&gt;
&lt;th&gt;Stored&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;PostgreSQL 18.7&lt;/td&gt;
&lt;td&gt;pglz&lt;/td&gt;
&lt;td&gt;pglz&lt;/td&gt;
&lt;td&gt;32,768&lt;/td&gt;
&lt;td&gt;419&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PostgreSQL 19&lt;/td&gt;
&lt;td&gt;lz4&lt;/td&gt;
&lt;td&gt;lz4&lt;/td&gt;
&lt;td&gt;32,768&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;179&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F78aw3egzm112m7zccqve.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F78aw3egzm112m7zccqve.png" alt="Side-by-side comparison of the same 32,768-byte text value: stored as 419 bytes with pglz on PostgreSQL 18.7 and 179 bytes with lz4 on PostgreSQL 19" width="800" height="273"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Same value, new default: pglz stores it in 419 bytes, lz4 in 179.&lt;/p&gt;

&lt;p&gt;On this deliberately repetitive value, LZ4 stored 57% fewer bytes. Real data will compress differently, and LZ4's main advantage is usually speed. Changing the default doesn't recompress existing data either: only new values use the new codec. See &lt;a href="https://www.postgresql.org/docs/19/runtime-config-client.html" rel="noopener noreferrer"&gt;client connection defaults&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Plan advice: telling the planner what you want
&lt;/h2&gt;

&lt;p&gt;When a plan goes bad after a statistics change, PostgreSQL users have long had few options besides rewriting the query or installing an extension. PostgreSQL 19 adds &lt;code&gt;pg_plan_advice&lt;/code&gt;, which can describe a plan, reproduce it and adjust it.&lt;/p&gt;

&lt;p&gt;To make the effect obvious, we asked for a sequential scan on a primary-key lookup, which the planner wouldn't normally choose:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="no"&gt;LOAD&lt;/span&gt; &lt;span class="s1"&gt;'pg_plan_advice'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;pg_plan_advice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;advice&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'SEQ_SCAN(c)'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;EXPLAIN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;COSTS&lt;/span&gt; &lt;span class="no"&gt;OFF&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;PLAN_ADVICE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_customers&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsplqari3imtfu9sw9mai.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsplqari3imtfu9sw9mai.png" alt="EXPLAIN output in VisuaLeaf showing a sequential scan with SEQ_SCAN(c) advice marked as matched" width="800" height="503"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The planner follows the advice: SEQ_SCAN(c) is marked as matched.&lt;/p&gt;

&lt;p&gt;The plan switched to &lt;code&gt;Seq Scan&lt;/code&gt;, and the output marked the advice as &lt;code&gt;matched&lt;/code&gt;. This was only a demonstration: you'd use advice to fix a real plan problem, not to force a worse plan. Reset it afterwards:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="no"&gt;RESET&lt;/span&gt; &lt;span class="n"&gt;pg_plan_advice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;advice&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Stashed advice applies automatically
&lt;/h3&gt;

&lt;p&gt;The companion &lt;code&gt;pg_stash_advice&lt;/code&gt; module ties advice to a query identifier, so it applies every time that query runs, with no &lt;code&gt;SET&lt;/code&gt; in the application.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="no"&gt;EXTENSION&lt;/span&gt; &lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;EXISTS&lt;/span&gt; &lt;span class="n"&gt;pg_stash_advice&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="no"&gt;LOAD&lt;/span&gt; &lt;span class="s1"&gt;'pg_stash_advice'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;compute_query_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;EXPLAIN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;VERBOSE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;COSTS&lt;/span&gt; &lt;span class="no"&gt;OFF&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;PLAN_ADVICE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_customers&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output includes a &lt;code&gt;Query Identifier&lt;/code&gt;. We used it to create a stash:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nf"&gt;pg_create_advice_stash&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'pg19_demo_advice'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- Use the query identifier from your own EXPLAIN output.&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nf"&gt;pg_set_stashed_advice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'pg19_demo_advice'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;74909709696979601&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'SEQ_SCAN(c)'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;pg_stash_advice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stash_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'pg19_demo_advice'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Running the same &lt;code&gt;EXPLAIN&lt;/code&gt; again showed the sequential scan, with the advice coming from the stash.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7s8ik8f714vubxu80zrv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7s8ik8f714vubxu80zrv.png" alt="EXPLAIN output in VisuaLeaf showing a sequential scan, the query identifier, and SEQ_SCAN(c) advice marked as matched from the pg19_demo_advice stash" width="800" height="658"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No advice is set in the session; the stash applies SEQ_SCAN(c) automatically by query identifier.&lt;/p&gt;

&lt;p&gt;Query identifiers vary between environments, so get your own. Our stash lived in shared memory for the session; keeping it across restarts needs extra setup, described in the &lt;a href="https://www.postgresql.org/docs/19/pgstashadvice.html" rel="noopener noreferrer"&gt;pg_stash_advice documentation&lt;/a&gt;. See also the &lt;a href="https://www.postgresql.org/docs/19/pgplanadvice.html" rel="noopener noreferrer"&gt;plan advice module&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="no"&gt;RESET&lt;/span&gt; &lt;span class="n"&gt;pg_stash_advice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stash_name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. I/O workers scale automatically
&lt;/h2&gt;

&lt;p&gt;PostgreSQL 18 introduced asynchronous I/O with a fixed pool of &lt;code&gt;io_workers&lt;/code&gt;. PostgreSQL 19 replaces that with a pool that grows and shrinks between a minimum and a maximum.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setting&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;unit&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg_settings&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'io_method'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'io_workers'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'io_min_workers'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'io_max_workers'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
               &lt;span class="s1"&gt;'io_worker_idle_timeout'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'io_worker_launch_interval'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5t9nwtlqqx3d1m8rk0qh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5t9nwtlqqx3d1m8rk0qh.png" alt="Side-by-side pg_settings results: PostgreSQL 18.7 shows io_workers = 3, PostgreSQL 19 shows io_min_workers 2, io_max_workers 8, idle timeout and launch interval" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PostgreSQL 18 has a fixed pool of 3 I/O workers; PostgreSQL 19 scales between 2 and 8.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setting&lt;/th&gt;
&lt;th&gt;PostgreSQL 18.7&lt;/th&gt;
&lt;th&gt;PostgreSQL 19&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;io_method&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;worker&lt;/td&gt;
&lt;td&gt;worker&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worker pool&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;io_workers = 3&lt;/code&gt; (fixed)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;io_min_workers = 2&lt;/code&gt;, &lt;code&gt;io_max_workers = 8&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;io_worker_idle_timeout&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;60 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;io_worker_launch_interval&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;100 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;We then ran repeated scans on a 500,000-row table and watched the pool from a second editor:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;count&lt;/span&gt;&lt;span class="cm"&gt;(*) AS io_workers
FROM pg_stat_activity
WHERE backend_type = 'io worker';
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The count climbed from &lt;strong&gt;2 to 8&lt;/strong&gt; under load, then dropped back to &lt;strong&gt;2&lt;/strong&gt; once the scans stopped. Your workload may peak at a different number. See &lt;a href="https://www.postgresql.org/docs/19/runtime-config-resource.html" rel="noopener noreferrer"&gt;I/O configuration&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Logical decoding without a restart
&lt;/h2&gt;

&lt;p&gt;Turning on logical replication used to mean changing &lt;code&gt;wal_level&lt;/code&gt; to &lt;code&gt;logical&lt;/code&gt; and restarting the server. In PostgreSQL 19, a server with &lt;code&gt;wal_level = replica&lt;/code&gt; raises its &lt;strong&gt;effective&lt;/strong&gt; WAL level automatically when the first logical replication slot is created.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nf"&gt;current_setting&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wal_level'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;configured_wal_level&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nf"&gt;current_setting&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'effective_wal_level'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;effective_wal_level&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nf"&gt;pg_postmaster_start_time&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;server_started_at&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before any logical slot exists, both levels read &lt;code&gt;replica&lt;/code&gt;. Then we created a slot:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="nf"&gt;pg_create_logical_replication_slot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'pg19_demo_slot'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'pgoutput'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Re-running the query showed &lt;code&gt;configured_wal_level = replica&lt;/code&gt;, &lt;code&gt;effective_wal_level = logical&lt;/code&gt;, and the &lt;strong&gt;same server start time&lt;/strong&gt;: no restart happened.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuhxfh4jn0jyg0asdpd9o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuhxfh4jn0jyg0asdpd9o.png" alt="VisuaLeaf result showing configured_wal_level replica, effective_wal_level logical, and the original server start time" width="800" height="658"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Configured as replica, running as logical, and the start time never changed.&lt;/p&gt;

&lt;p&gt;Connection limits, permissions and worker capacity still need to be in place. See &lt;a href="https://www.postgresql.org/docs/19/runtime-config-wal.html" rel="noopener noreferrer"&gt;WAL configuration&lt;/a&gt;. Drop the test slot when you're done, because an unused slot holds back WAL:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nf"&gt;pg_drop_replication_slot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'pg19_demo_slot'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. Sequences now replicate
&lt;/h2&gt;

&lt;p&gt;Migrating with logical replication used to leave a trap: table rows got copied, but sequences on the target stayed behind, so the first insert after cutover could fail on a duplicate key. PostgreSQL 19 adds sequence synchronization to logical replication.&lt;/p&gt;

&lt;p&gt;Our test:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create &lt;code&gt;order_number_seq&lt;/code&gt; on the publisher and the subscriber, starting at 1000.&lt;/li&gt;
&lt;li&gt;Advance the publisher to 1050.&lt;/li&gt;
&lt;li&gt;Publish all sequences and subscribe; both sides show 1050.&lt;/li&gt;
&lt;li&gt;Advance the publisher to 2000 and refresh the subscriber.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Publisher&lt;/span&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="no"&gt;PUBLICATION&lt;/span&gt; &lt;span class="n"&gt;pg19_sequence_pub&lt;/span&gt; &lt;span class="k"&gt;FOR&lt;/span&gt; &lt;span class="k"&gt;ALL&lt;/span&gt; &lt;span class="no"&gt;SEQUENCES&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nf"&gt;setval&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'pg19_lab.order_number_seq'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Subscriber&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="no"&gt;SUBSCRIPTION&lt;/span&gt; &lt;span class="n"&gt;pg19_sequence_sub&lt;/span&gt; &lt;span class="no"&gt;REFRESH&lt;/span&gt; &lt;span class="no"&gt;SEQUENCES&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Both&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nf"&gt;current_database&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;database_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;last_value&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;is_called&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;order_number_seq&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fouo7yabe0senz4ummfnu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fouo7yabe0senz4ummfnu.png" alt="Two VisuaLeaf editors side by side: publisher pg19_demo and subscriber pg19_subscriber both show order_number_seq at last_value 2000, is_called true" width="800" height="503"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After REFRESH SEQUENCES, the publisher and the subscriber both show 2000.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sequences are copied at subscription time and then on demand with &lt;code&gt;REFRESH SEQUENCES&lt;/code&gt;. They don't follow every increment continuously.&lt;/strong&gt; Run a refresh as part of your cutover. See &lt;a href="https://www.postgresql.org/docs/19/logical-replication-sequences.html" rel="noopener noreferrer"&gt;sequence replication&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Autovacuum: easier to inspect, faster on indexes
&lt;/h2&gt;

&lt;h3&gt;
  
  
  See which tables need attention
&lt;/h3&gt;

&lt;p&gt;The new &lt;code&gt;pg_stat_autovacuum_scores&lt;/code&gt; view shows how urgently each table needs vacuuming or analyzing.&lt;/p&gt;

&lt;p&gt;We deleted 35,000 of 50,000 rows from a table with autovacuum temporarily paused, then checked the scores:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;relname&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;table_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;score&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;priority_score&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="n"&gt;vacuum_score&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;analyze_score&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;do_vacuum&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;do_analyze&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg_stat_autovacuum_scores&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;schemaname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'pg19_lab'&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;score&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;relname&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxlvwkyy4b3qvg0i7h23d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxlvwkyy4b3qvg0i7h23d.png" alt="pg_stat_autovacuum_scores results in VisuaLeaf: autovacuum_demo ranked first with a score near 6.93 and do_vacuum and do_analyze both true" width="800" height="658"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The table we disturbed jumps to the top; the quiet tables score near zero.&lt;/p&gt;

&lt;p&gt;Until now, answering "why hasn't autovacuum touched this table?" took threshold math by hand. Now it's one query. The scores change live as statistics and maintenance change.&lt;/p&gt;

&lt;h3&gt;
  
  
  Parallel index vacuuming
&lt;/h3&gt;

&lt;p&gt;Autovacuum can now process indexes with parallel workers. This is off by default (&lt;code&gt;autovacuum_max_parallel_workers = 0&lt;/code&gt;). We set it to 2, deleted 150,000 of 200,000 rows from a table with two indexes, and the server log confirmed it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tuples: 150000 removed, 50000 remain, 0 are dead but not yet removable
parallel workers: index vacuum: 1 planned, 1 launched in total
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On large tables with many indexes, this is where autovacuum spends most of its time. See &lt;a href="https://www.postgresql.org/docs/19/runtime-config-vacuum.html" rel="noopener noreferrer"&gt;vacuum configuration&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. WAIT: read-your-writes on a standby
&lt;/h2&gt;

&lt;p&gt;A classic replica bug: the application writes to the primary, immediately reads from an async standby, and gets stale data. PostgreSQL 19's &lt;code&gt;WAIT FOR LSN&lt;/code&gt; makes the reader wait until the standby has replayed up to a given WAL position.&lt;/p&gt;

&lt;p&gt;On the primary, after the write commits, capture the position:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nf"&gt;pg_is_in_recovery&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;is_standby&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="k"&gt;CASE&lt;/span&gt; &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="nf"&gt;pg_is_in_recovery&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;
            &lt;span class="k"&gt;ELSE&lt;/span&gt; &lt;span class="nf"&gt;pg_current_wal_insert_lsn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
       &lt;span class="k"&gt;END&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;target_lsn&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the standby, wait for it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="no"&gt;WAIT&lt;/span&gt; &lt;span class="k"&gt;FOR&lt;/span&gt; &lt;span class="no"&gt;LSN&lt;/span&gt; &lt;span class="s1"&gt;'0/24002738'&lt;/span&gt;
&lt;span class="k"&gt;WITH&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;MODE&lt;/span&gt; &lt;span class="s1"&gt;'standby_replay'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;TIMEOUT&lt;/span&gt; &lt;span class="s1"&gt;'2s'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;NO_THROW&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fen3bquwrts7ymf6wacj5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fen3bquwrts7ymf6wacj5.png" alt="Split view in VisuaLeaf: the primary returns target LSN 0/24002738, and WAIT FOR LSN on the standby returns success" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Left: the primary hands out the WAL position. Right: the standby confirms it has replayed that far.&lt;/p&gt;

&lt;p&gt;With &lt;code&gt;NO_THROW&lt;/code&gt;, check the returned status: &lt;code&gt;success&lt;/code&gt; means it's safe to read, and &lt;code&gt;timeout&lt;/code&gt; means the standby is still behind. Run &lt;code&gt;WAIT&lt;/code&gt; as its own top-level command, before starting the read's snapshot. See the &lt;a href="https://www.postgresql.org/docs/19/sql-wait.html" rel="noopener noreferrer"&gt;WAIT reference&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. Two SQL additions for everyday queries
&lt;/h2&gt;

&lt;h3&gt;
  
  
  IGNORE NULLS in window functions
&lt;/h3&gt;

&lt;p&gt;Sensor data with gaps? &lt;code&gt;lag()&lt;/code&gt; can now skip nulls and return the last known value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;WITH&lt;/span&gt; &lt;span class="nf"&gt;readings&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sample_no&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reading&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;150&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;sample_no&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reading&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nb"&gt;lag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;reading&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;OVER&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;sample_no&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;previous_row&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nb"&gt;lag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;reading&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="no"&gt;IGNORE&lt;/span&gt; &lt;span class="k"&gt;NULLS&lt;/span&gt; &lt;span class="k"&gt;OVER&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;sample_no&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;previous_known&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;readings&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;sample_no&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Sample&lt;/th&gt;
&lt;th&gt;Reading&lt;/th&gt;
&lt;th&gt;Previous row&lt;/th&gt;
&lt;th&gt;Previous known&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;td&gt;NULL&lt;/td&gt;
&lt;td&gt;NULL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;NULL&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;120&lt;/td&gt;
&lt;td&gt;NULL&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;NULL&lt;/td&gt;
&lt;td&gt;120&lt;/td&gt;
&lt;td&gt;120&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;150&lt;/td&gt;
&lt;td&gt;NULL&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;120&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;See &lt;a href="https://www.postgresql.org/docs/19/functions-window.html" rel="noopener noreferrer"&gt;window functions&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8heoo80aymuhw9m9oalc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8heoo80aymuhw9m9oalc.png" alt="VisuaLeaf result comparing lag() with and without IGNORE NULLS on sample readings with gaps" width="800" height="658"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With IGNORE NULLS, lag() skips the gaps and returns the last known value.&lt;/p&gt;

&lt;h3&gt;
  
  
  ON CONFLICT DO SELECT
&lt;/h3&gt;

&lt;p&gt;Get-or-create in one statement, without the old &lt;code&gt;DO UPDATE SET email = EXCLUDED.email&lt;/code&gt; workaround:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_contacts&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="kt"&gt;integer&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;email&lt;/span&gt; &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;UNIQUE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;display_name&lt;/span&gt; &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_contacts&lt;/span&gt; &lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'ana@example.com'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Ana'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;pg19_lab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;demo_contacts&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;display_name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'ana@example.com'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Another contact'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;CONFLICT&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;DO&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt;
&lt;span class="k"&gt;RETURNING&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;display_name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb4qvxm5kbpf664x6vduv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb4qvxm5kbpf664x6vduv.png" alt="VisuaLeaf result of INSERT … ON CONFLICT DO SELECT returning the existing row for ana@example.com" width="800" height="658"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The insert conflicts, so PostgreSQL returns Ana’s existing row.&lt;/p&gt;

&lt;p&gt;It returns Ana's existing row (&lt;code&gt;1, ana@example.com, Ana&lt;/code&gt;) with no write and no dead tuple. See &lt;a href="https://www.postgresql.org/docs/19/sql-insert.html" rel="noopener noreferrer"&gt;INSERT&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  More visibility into the server
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;New view&lt;/th&gt;
&lt;th&gt;What it shows&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pg_stat_autovacuum_scores&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Per-table vacuum/analyze priority&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pg_stat_lock&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lock statistics aggregated by lock type&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pg_stat_recovery&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Recovery status on a standby&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pg_dsm_registry_allocations&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Registered dynamic shared-memory allocations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pg_stat_progress_repack&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Progress of a running &lt;code&gt;REPACK&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;See the &lt;a href="https://www.postgresql.org/docs/19/monitoring-stats.html" rel="noopener noreferrer"&gt;statistics documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Defaults and compatibility changes to check before upgrading
&lt;/h2&gt;

&lt;p&gt;We ran the same settings query on both versions side by side:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5asibxzhpkilmvwj057f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5asibxzhpkilmvwj057f.png" alt="Side-by-side settings comparison in VisuaLeaf: PostgreSQL 18.7 shows pglz, jit on, 64 locks; PostgreSQL 19 shows lz4, jit off, 128 locks" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One query, two versions: the defaults that change when you upgrade.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setting&lt;/th&gt;
&lt;th&gt;PostgreSQL 18.7&lt;/th&gt;
&lt;th&gt;PostgreSQL 19&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;default_toast_compression&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;pglz&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;lz4&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;jit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;on&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;off&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;max_locks_per_transaction&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;64&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;128&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;password_expiration_warning_threshold&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;7 days&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;escape_string_warning&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;on&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;removed&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;From the &lt;a href="https://www.postgresql.org/docs/19/release-19.html#RELEASE-19-MIGRATION" rel="noopener noreferrer"&gt;migration notes&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;standard_conforming_strings&lt;/code&gt; is always on.&lt;/strong&gt; Dumps taken with older tools with it set to &lt;code&gt;off&lt;/code&gt; won't restore correctly. Re-dump with PostgreSQL 19's tools.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JIT is off by default.&lt;/strong&gt; If your analytical queries relied on it, turn it back on explicitly.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;RADIUS authentication is removed.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;io_workers&lt;/code&gt; is replaced&lt;/strong&gt; by &lt;code&gt;io_min_workers&lt;/code&gt; and &lt;code&gt;io_max_workers&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database, role and tablespace names&lt;/strong&gt; can no longer contain carriage returns or line feeds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;max_locks_per_transaction&lt;/code&gt; is 128,&lt;/strong&gt; but lock allocation also changed, so this isn't simply double the old capacity.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Read the full notes for index, locale and extension items that may affect your schema.&lt;/p&gt;

&lt;h3&gt;
  
  
  What didn't make it
&lt;/h3&gt;

&lt;p&gt;If you read PostgreSQL 19 coverage from the beta period, some features you saw won't be in the release. The &lt;a href="https://www.postgresql.org/about/news/postgresql-19-beta-4-released-3386/" rel="noopener noreferrer"&gt;Beta 4 announcement&lt;/a&gt; reverted, among others:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SQL/PGQ property graph queries (&lt;code&gt;GRAPH_TABLE&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Online enabling and disabling of data checksums&lt;/li&gt;
&lt;li&gt;Temporal &lt;code&gt;UPDATE&lt;/code&gt;/&lt;code&gt;DELETE&lt;/code&gt; with &lt;code&gt;FOR PORTION OF&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;MERGE PARTITIONS&lt;/code&gt; / &lt;code&gt;SPLIT PARTITION&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What to test first
&lt;/h2&gt;

&lt;p&gt;Start with what hurts today:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bloated tables?&lt;/strong&gt; Measure size, run &lt;code&gt;REPACK (CONCURRENTLY)&lt;/code&gt; on a copy, and measure again.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Critical queries?&lt;/strong&gt; Compare their plans on 18 and 19, side by side.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reading from replicas?&lt;/strong&gt; Try &lt;code&gt;WAIT FOR LSN&lt;/code&gt; on the paths where stale reads cause bugs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Upgrading?&lt;/strong&gt; Diff your settings and check the JIT and &lt;code&gt;standard_conforming_strings&lt;/code&gt; changes first.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;PostgreSQL 19 also includes features we didn't test here: faster foreign-key checks, earlier aggregation in some join plans, JSON output from &lt;code&gt;COPY&lt;/code&gt;, new SQL/JSON path string methods, and server-side TLS SNI. The &lt;a href="https://www.postgresql.org/docs/19/release-19.html" rel="noopener noreferrer"&gt;release notes&lt;/a&gt; cover them all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try PostgreSQL 19 in &lt;a href="https://visualeaf.com" rel="noopener noreferrer"&gt;VisuaLeaf&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;Every result in this article came from the same workflow: two servers, two SQL Editors side by side, one query. That's how we saw a 70 MB table drop to 14 MB, a hashed subplan turn into a Hash Anti Join, and a standby report &lt;code&gt;success&lt;/code&gt; the moment it caught up. You can't see a difference that clearly by switching between terminal windows.&lt;/p&gt;

&lt;p&gt;You can run the same lab in a few minutes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://visualeaf.com" rel="noopener noreferrer"&gt;Download VisuaLeaf&lt;/a&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Start PostgreSQL 18 and 19 with the two Docker commands at the top of this article.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://visualeaf.com/docs/connection-manager" rel="noopener noreferrer"&gt;Add both connections&lt;/a&gt;, open a SQL Editor for each, and paste in the queries from this article.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Begin with the settings comparison and the &lt;code&gt;NOT IN&lt;/code&gt; plan. Those two take under a minute, and they show you what changes when you upgrade.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://visualeaf.com/download" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdw7j2hkdo9o0tzxewzo5.jpg" alt="CTA Image" width="800" height="1000"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PostgreSQL GUI Client for Windows, macOS, and Linux&lt;/p&gt;

&lt;p&gt;&lt;a href="https://visualeaf.com/download" rel="noopener noreferrer"&gt;Free Download&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Read more about PostgreSQL
&lt;/h2&gt;

&lt;p&gt;Want to go deeper? These guides from the &lt;a href="https://visualeaf.com/blog/" rel="noopener noreferrer"&gt;VisuaLeaf blog&lt;/a&gt; are a good next step:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://visualeaf.com/blog/postgresql-jsonb-query-update-index/" rel="noopener noreferrer"&gt;PostgreSQL JSONB: Query, Update, and Index JSON Data&lt;/a&gt;&lt;/strong&gt;: query nested JSON, update single fields in place, and speed up searches with GIN indexes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://visualeaf.com/blog/postgresql-jsonb-vs-mongodb-bson-architectural-tradeoffs/" rel="noopener noreferrer"&gt;PostgreSQL JSONB vs MongoDB BSON: The Real Architectural Tradeoffs&lt;/a&gt;&lt;/strong&gt;: how the two formats differ on disk, and what that means for updates, indexes and reads.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://visualeaf.com/blog/mongodb-vs-postgresql-what-everyone-gets-wrong/" rel="noopener noreferrer"&gt;MongoDB vs PostgreSQL: The Arguments Everyone Gets Wrong&lt;/a&gt;&lt;/strong&gt;: the myths about schemas, durability and benchmarks that keep coming up in this debate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://visualeaf.com/blog/copy-and-sync-a-mongodb-collection-to-postgresql/" rel="noopener noreferrer"&gt;How to Copy and Sync a MongoDB Collection to PostgreSQL&lt;/a&gt;&lt;/strong&gt;: move a collection into PostgreSQL, map nested fields to JSONB, and keep the two in sync.&lt;/li&gt;
&lt;/ul&gt;




</description>
      <category>postgres</category>
      <category>postgressql</category>
      <category>database</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>Oracle Developer Tools: One Workspace for SQL, Diagrams and Charts</title>
      <dc:creator>VisuaLeaf</dc:creator>
      <pubDate>Tue, 10 Nov 2026 21:09:08 +0000</pubDate>
      <link>https://dev.to/visualeaf/oracle-developer-tools-one-workspace-for-sql-diagrams-and-charts-4o97</link>
      <guid>https://dev.to/visualeaf/oracle-developer-tools-one-workspace-for-sql-diagrams-and-charts-4o97</guid>
      <description>&lt;p&gt;If you work with &lt;a href="https://www.oracle.com/" rel="noopener noreferrer"&gt;Oracle&lt;/a&gt; every day, try counting the windows you have open right now. There's probably a SQL client. Maybe a data modeler, or an ER diagram someone exported to PDF last spring. A spreadsheet where you pasted query results so your manager could see a chart. And somewhere, a text file with an execution plan you keep meaning to read properly.&lt;/p&gt;

&lt;p&gt;None of those tools is bad on its own. The trouble is the space between them. Every time you copy a result set into Excel, or redraw a relationship by hand because the diagram is out of date, you're doing work the tools should be doing for you.&lt;/p&gt;

&lt;p&gt;We build &lt;a href="https://visualeaf.com/" rel="noopener noreferrer"&gt;VisuaLeaf&lt;/a&gt;, and Oracle has been a big part of our work this year. So instead of another feature list, this article goes through the everyday jobs of an Oracle developer and shows how we handle each one in a single workspace. Every screenshot comes from a real Oracle schema: a small retail order system with customers, orders, payments, shipments, and inventory.&lt;/p&gt;

&lt;h2&gt;
  
  
  What "Oracle developer tools" really means day to day
&lt;/h2&gt;

&lt;p&gt;When people search for Oracle developer tools, they usually aren't looking for one magic product. They're trying to cover a handful of jobs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;writing and running SQL against a live database&lt;/li&gt;
&lt;li&gt;understanding how tables relate before touching them&lt;/li&gt;
&lt;li&gt;figuring out why a query is slow&lt;/li&gt;
&lt;li&gt;changing table structure, constraints, and triggers safely&lt;/li&gt;
&lt;li&gt;showing the results to someone who doesn't read SQL&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most teams cover these with three or four separate tools. Here's what it looks like when they live in one place.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. An Oracle SQL editor that knows your schema
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://visualeaf.com/features/sql-editor/" rel="noopener noreferrer"&gt;The SQL editor&lt;/a&gt; is where most of the day goes, so it has to stay out of your way. In VisuaLeaf, the editor reads your Oracle schema as you type.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo678jdfuflsjsyeh9tf7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo678jdfuflsjsyeh9tf7.png" alt="Oracle SQL editor suggesting ORDER_ID in a revenue-by-category query" width="800" height="676"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Autocomplete that knows your tables, columns and constraints.&lt;/p&gt;

&lt;p&gt;In the screenshot, we’re writing a revenue-by-category query: ORDER_ITEMS joined to PRODUCTS and CUSTOMER_ORDERS, with cancelled orders filtered out. Type &lt;code&gt;i.ORD&lt;/code&gt; and the editor suggests ORDER_ID from ORDER_ITEMS. It also tells you the column’s type and that it’s NOT NULL, so you know what you’re joining on without opening the table.&lt;/p&gt;

&lt;p&gt;Run it, and the results show up right underneath: seven categories, from Accessories down to Computers. Messages and History sit in tabs next to the results, so you can check what ran without leaving the editor.&lt;br&gt;&lt;br&gt;
You can also run just the selected lines, or run up to the line your cursor is on, and save the whole thing as a script.&lt;/p&gt;

&lt;p&gt;It sounds small. But a good Oracle SQL client is mostly about removing those tiny interruptions, and they add up fast over a working week.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Sketch the query before you write it
&lt;/h2&gt;

&lt;p&gt;Some queries are easier to see than to type, especially when you’re working in a schema you didn’t design yourself.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv7d9tt6mlb55q6mzgno8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv7d9tt6mlb55q6mzgno8.png" alt="VisuaLeaf query builder joining CUSTOMER_ORDERS and CUSTOMERS with a shipped-orders filter" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Build the join on the canvas and the SQL is auto-generated for you.&lt;/p&gt;

&lt;p&gt;With the &lt;a href="https://visualeaf.com/features/visual-query-builder/" rel="noopener noreferrer"&gt;visual query builder&lt;/a&gt;, you drop tables onto a canvas and VisuaLeaf connects them on their keys. You choose the join type, add filters and sorting from the side panel, and the SQL is generated as you go, right above the results. When you want to fine-tune it by hand, switch to the SQL editor and keep going.&lt;/p&gt;

&lt;p&gt;It’s handy for a quick two-table join, and even more so when a query grows to four or five tables, and you’d rather see the connections than untangle them in text.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Explain plans you can read in ten seconds
&lt;/h2&gt;

&lt;p&gt;This is the feature we're most proud of, because Oracle execution plans are famously hard to read as plain text.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp3rhuzuincp4ol8orisc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp3rhuzuincp4ol8orisc.png" alt="Oracle execution plan with hash joins, full table scans and cost bars" width="800" height="652"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cost bars and Full Scan labels show where the query spends its time.&lt;/p&gt;

&lt;p&gt;When a query is slow, the execution plan tells you why. The problem is that Oracle gives it to you as a dense block of text.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://visualeaf.com/features/query-profiler/" rel="noopener noreferrer"&gt;Visual Explain&lt;/a&gt; turns it into a tree you can read from top to bottom, one step per card:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SELECT&lt;/strong&gt; is the final result your query returns.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SORT&lt;/strong&gt; is Oracle putting the rows in order, here because of the ORDER BY.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HASH JOIN&lt;/strong&gt; is how Oracle matches rows from two tables. It builds a lookup from one table and checks the other against it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FULL TABLE SCAN&lt;/strong&gt; means Oracle reads every row in the table to find the ones it needs. On small tables, that’s fine. On large ones, it’s often the reason a query is slow.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each step shows its cost, the number of rows it handles, and a colored bar from low to very high cost, so the expensive parts stand out at a glance. Full scans get a warning label, and you can collapse branches, switch to the SQL or JSON view, or re-run the query after a change to see if the plan improved.&lt;/p&gt;

&lt;p&gt;And if you’re still not sure what you’re looking at, &lt;a href="https://visualeaf.com/features/ai-helper/" rel="noopener noreferrer"&gt;AI Explain&lt;/a&gt; describes the plan in plain language and points you to what’s worth fixing first.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Oracle data modeling with live ER diagrams
&lt;/h2&gt;

&lt;p&gt;Most ER diagrams die the week after they're drawn. The schema changes, nobody updates the picture, and soon nobody trusts it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4rszlpmtkulskwz19fef.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4rszlpmtkulskwz19fef.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://visualeaf.com/features/visual-schema/" rel="noopener noreferrer"&gt;VisuaLeaf builds the ER diagram&lt;/a&gt; straight from your live Oracle schema, using the foreign keys that already exist. No drawing by hand, and it doesn’t go out of date.&lt;/p&gt;

&lt;p&gt;From there, you can change the design right on the canvas, edit columns and keys in the side panel, or switch to DBML if you prefer text. When everything looks right, click Materialize to apply the changes to the database.&lt;/p&gt;

&lt;p&gt;Generate, edit, materialize. That’s the whole Oracle data modeling workflow, in one place.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Tables, constraints and PL/SQL triggers without hand-written DDL
&lt;/h2&gt;

&lt;p&gt;Opening a table gives you its full picture in tabs: columns with Oracle data types, defaults and identity columns, then constraints, triggers, partitions and storage.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F76yo53mx469pjvg425f5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F76yo53mx469pjvg425f5.png" width="800" height="640"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Triggers are a good example of why this matters. On CUSTOMER_ORDERS in the demo, there are two: TRG_ORDERS_UPDATED_AT, which sets &lt;code&gt;:NEW.updated_at := SYSTIMESTAMP&lt;/code&gt; before every update, and TRG_ORDER_STATUS_AUDIT, which writes each status change into an ORDER_STATUS_HISTORY table. In many tools you'd have to go hunting for those in a separate object tree. Here they sit right on the table they belong to, where you can read the PL/SQL source, create a new trigger, or drop an old one.&lt;/p&gt;

&lt;p&gt;It's the kind of thing that saves you from the classic "why does updated_at keep changing?"&lt;/p&gt;

&lt;h2&gt;
  
  
  6. A bit of Oracle BI, without leaving your client
&lt;/h2&gt;

&lt;p&gt;Here's a situation you probably know. You've written a nice query, revenue by product category, and someone asks for "a quick chart". So you export to CSV, open a spreadsheet, build the chart, take a screenshot, and paste it into Slack.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqarrax96siy4ffc1u8h1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqarrax96siy4ffc1u8h1.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In VisuaLeaf, you skip all of that. Run your query, switch the results to chart view, and the tool picks the axes for you: categories on X, numbers on Y. &lt;a href="https://visualeaf.com/features/chart-builder/" rel="noopener noreferrer"&gt;Your chart is already there.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want something different, change the chart type (bar, line, area, pie, donut, treemap, or funnel) or adjust the axes, then save it. Put a few saved charts together, and you have a &lt;a href="https://visualeaf.com/blog/mongodb-workspace-queries-schema-charts-teams/" rel="noopener noreferrer"&gt;dashboard&lt;/a&gt; built on live Oracle data, so it never goes stale like a pasted screenshot.&lt;/p&gt;

&lt;p&gt;To be clear about scope, this isn’t meant to replace a full enterprise BI platform. It’s for the gap between “I have the data” and “I need to show it”, which is where most of us lose time.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. When your stack isn't only Oracle
&lt;/h2&gt;

&lt;p&gt;Very few teams run Oracle alone. There's usually a PostgreSQL service somewhere, a MySQL database inherited from an acquisition, a MongoDB cluster the product team loves.&lt;/p&gt;

&lt;p&gt;VisuaLeaf &lt;a href="https://visualeaf.com/database/" rel="noopener noreferrer"&gt;connects to 37+ SQL and NoSQL engines&lt;/a&gt; and keeps the same workflow across all of them, on &lt;a href="https://visualeaf.com/blog/best-database-design-tools/" rel="noopener noreferrer"&gt;Windows, macOS, and Linux.&lt;/a&gt; So the Oracle developer tools you learn here are the same ones you'll use for the next database.&lt;/p&gt;

&lt;h2&gt;
  
  
  Looking for a free Oracle SQL client? Start with Community Edition
&lt;/h2&gt;

&lt;p&gt;Yes, there's a free version. &lt;a href="https://visualeaf.com/features/" rel="noopener noreferrer"&gt;VisuaLeaf Community Edition&lt;/a&gt; is free to use for as long as you want, with no account and no credit card, and it supports Oracle. It's a good fit if you're learning Oracle, running Oracle Database Free in Docker on your laptop, or you just need a clean Oracle SQL client for everyday queries.&lt;/p&gt;

&lt;p&gt;When you want the visual side, like the query builder, schema diagrams, charts, and dashboards, there are paid editions. Every account gets a 14-day trial of the Professional edition with everything unlocked, so you can test it on your own schema before deciding.&lt;/p&gt;

&lt;p&gt;Licensing is flexible: you can pay monthly or choose a longer license, depending on how you work. There are volume discounts for teams of five or more, and a startup discount for the first year. Full details are on the &lt;a href="https://visualeaf.com/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it on a schema you know well
&lt;/h2&gt;

&lt;p&gt;The fastest way to judge a tool is to point it at a database you already understand. Here's a 15-minute test we'd suggest:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://visualeaf.com/download" rel="noopener noreferrer"&gt;Download VisuaLeaf&lt;/a&gt; and connect to Oracle with a service name or SID, directly or over SSH.&lt;/li&gt;
&lt;li&gt;Generate the ER diagram for one schema and check whether it matches what's in your head.&lt;/li&gt;
&lt;li&gt;Take your slowest query and open it in Visual Explain.&lt;/li&gt;
&lt;li&gt;Turn one result set you normally export into a chart.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If by the end of the trial you notice you've stopped opening three other tools, the license has already paid for itself. And if something's missing for your Oracle workflow, tell us on &lt;a href="https://discord.gg/TR6J56Y3rF" rel="noopener noreferrer"&gt;Discord&lt;/a&gt;. A lot of what's in this article started as a user request.&lt;/p&gt;

&lt;p&gt;More about &lt;a href="https://visualeaf.com/database/oracle/" rel="noopener noreferrer"&gt;VisuaLeaf as an Oracle GUI client&lt;/a&gt;, or see &lt;a href="https://visualeaf.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw30v6ckicoouz42ij8cd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw30v6ckicoouz42ij8cd.png" width="800" height="1000"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>sql</category>
      <category>oracle</category>
      <category>database</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>Best Database Design Tools for 2027: Windows, macOS &amp; Linux</title>
      <dc:creator>VisuaLeaf</dc:creator>
      <pubDate>Mon, 26 Oct 2026 13:15:24 +0000</pubDate>
      <link>https://dev.to/visualeaf/best-database-design-tools-for-2027-windows-macos-linux-2m6j</link>
      <guid>https://dev.to/visualeaf/best-database-design-tools-for-2027-windows-macos-linux-2m6j</guid>
      <description>&lt;p&gt;Most database trouble starts with a schema nobody ever drew. A handful of tables turn into fifty, someone adds a foreign key late on a Friday, and a few months later nobody can explain how orders connect to customers without reading raw DDL.&lt;/p&gt;

&lt;p&gt;A visual design tool fixes that. You see the tables, you see the relationships, and you can show them to a teammate who wasn’t in the room. The catch is that “database tool” covers a lot of ground. Some let you design a schema before the database exists. Others are SQL clients that draw a diagram once you connect to a live server.&lt;/p&gt;

&lt;p&gt;This article compares eight popular tools, focusing on schema design and documentation. For each one, you get what it does well, where it falls short, how many databases it connects to, what it costs, and how painful the free trial is to start.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Short on time?&lt;/em&gt;&lt;/strong&gt;* Jump to the strengths and weaknesses overview at the end for a quick side-by-side of all eight tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I looked at
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Can you design a schema visually, or only view one that already exists?&lt;/li&gt;
&lt;li&gt;Can it reverse engineer a live database into a diagram?&lt;/li&gt;
&lt;li&gt;Can it generate SQL from the diagram (forward engineering)?&lt;/li&gt;
&lt;li&gt;Does it help with schema comparison, documentation export, or team workflows?&lt;/li&gt;
&lt;li&gt;How many databases can it connect to?&lt;/li&gt;
&lt;li&gt;What is free, what is paid, and how easy is it to start a trial?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The eight tools side by side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Built around&lt;/th&gt;
&lt;th&gt;Runs on&lt;/th&gt;
&lt;th&gt;Databases&lt;/th&gt;
&lt;th&gt;Price&lt;/th&gt;
&lt;th&gt;Free trial&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;VisuaLeaf&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;One GUI for MongoDB and SQL&lt;/td&gt;
&lt;td&gt;Windows, macOS, Linux&lt;/td&gt;
&lt;td&gt;37+&lt;/td&gt;
&lt;td&gt;Free Community Edition. Basic from $10/month or $79. Professional from $16/month or $149&lt;/td&gt;
&lt;td&gt;14 days, email only; can be extended&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DataGrip&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;SQL editing&lt;/td&gt;
&lt;td&gt;Windows, macOS, Linux&lt;/td&gt;
&lt;td&gt;50+&lt;/td&gt;
&lt;td&gt;Free for non-commercial use. From $10.90/month or $109/year. Organizations from $259/user/year&lt;/td&gt;
&lt;td&gt;30 days, starts straight away&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DbSchema&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;An offline model file&lt;/td&gt;
&lt;td&gt;Windows, macOS, Linux&lt;/td&gt;
&lt;td&gt;100+&lt;/td&gt;
&lt;td&gt;Free Community. Pro from $196 personal / $294 business. Architect from $313.60 personal / $470.40 business&lt;/td&gt;
&lt;td&gt;15 days of Architect, one click; can be extended&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DBeaver&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Live database work&lt;/td&gt;
&lt;td&gt;Windows, macOS, Linux&lt;/td&gt;
&lt;td&gt;100+&lt;/td&gt;
&lt;td&gt;Free Community. Lite $113/year, Enterprise $255/year, Ultimate $510/year&lt;/td&gt;
&lt;td&gt;14 days; request and import a licence key&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Navicat&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Live database work&lt;/td&gt;
&lt;td&gt;Windows, macOS, Linux&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;Free Premium Lite. Premium perpetual licence from 75$/month or $1,499 perpetual; subscriptions also offered&lt;/td&gt;
&lt;td&gt;14 days, starts automatically&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DbVisualizer&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Live database work&lt;/td&gt;
&lt;td&gt;Windows, macOS, Linux&lt;/td&gt;
&lt;td&gt;40+ plus JDBC&lt;/td&gt;
&lt;td&gt;Free edition. Pro $199 the first year, then $89/year&lt;/td&gt;
&lt;td&gt;21 days, no account or card needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;TablePlus&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A fast native client&lt;/td&gt;
&lt;td&gt;macOS, Windows, Linux&lt;/td&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;td&gt;Free edition with limits. Basic $99 one-time, Standard $129 one-time&lt;/td&gt;
&lt;td&gt;Free forever, no signup needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Beekeeper Studio&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A clean SQL client&lt;/td&gt;
&lt;td&gt;Windows, macOS, Linux&lt;/td&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;td&gt;Free Community. Paid from $18/month or $168 billed yearly&lt;/td&gt;
&lt;td&gt;14 days, no email or card&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Prices are USD list prices before tax, checked in October 2026. Where a vendor splits business and personal plans, the business price is shown. Plans change often, so confirm on each vendor’s site before you buy.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Tested the 8 GUIs
&lt;/h2&gt;

&lt;p&gt;All screenshots come from the same &lt;a href="https://www.mysql.com/" rel="noopener noreferrer"&gt;MySQL database&lt;/a&gt;, so the diagrams are comparable. For this comparison, I connected every tool to the same MySQL 8.4.11 database: &lt;code&gt;super_bowl_ticketing&lt;/code&gt;, with 19 tables and 21 foreign-key relationships.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://visualeaf.com/" rel="noopener noreferrer"&gt;1. VisuaLeaf&lt;/a&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Platform:&lt;/em&gt;&lt;/strong&gt;* Windows, macOS, Linux&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Databases:&lt;/em&gt;&lt;/strong&gt;* MySQL, MongoDB, PostgreSQL, and 34 more&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* free Community Edition. Basic from $10/month or $79 one-time; Professional $149 one-time (each includes 1 year of updates)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Free trial:&lt;/em&gt;&lt;/strong&gt;* 14 days of Pro features. Add your email in the app or on the dashboard and the trial starts, with the option to extend it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;VisuaLeaf treats MongoDB and relational databases as equals, which is still rare. For schema work, you can create a diagram from scratch or reverse engineer an existing database into one, then stay in the same app for the rest of the job.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Key features&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Schema diagrams:&lt;/em&gt;&lt;/strong&gt;* create one from scratch or reverse engineer an existing database. ER diagrams for SQL databases are in the free Community Edition&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;SQL editor:&lt;/em&gt;&lt;/strong&gt;* with inline editing and a visual query builder&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Index manager:&lt;/em&gt;&lt;/strong&gt;* create, change, and drop indexes&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Query profiler:&lt;/em&gt;&lt;/strong&gt;* find and diagnose slow queries (from Basic)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Data compare and sync:&lt;/em&gt;&lt;/strong&gt;* across MongoDB and SQL databases (Professional)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Data masking:&lt;/em&gt;&lt;/strong&gt;* hide sensitive fields in exports (from Basic)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Task automation:&lt;/em&gt;&lt;/strong&gt;* import, export, and migration tasks, including scheduled transfers&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Charts and dashboards:&lt;/em&gt;&lt;/strong&gt;* built from your queries (Professional)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;AI Assistant&lt;/em&gt;&lt;/strong&gt;* in the Basic plan or MCP in the Pro one.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Database Documentation:&lt;/em&gt;&lt;/strong&gt;* interactive HTML5, PDF, JSON, DDL (Pro)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuk2k1is5nh4x7igp31e8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuk2k1is5nh4x7igp31e8.png" alt="VisuaLeaf visual schema designer connected to the sample MySQL event-ticketing database." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;VisuaLeaf visual schema designer showing relational MySQL tables alongside the expanded structure of a JSON column.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4bz5ak57sfe5dn002ki1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4bz5ak57sfe5dn002ki1.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fns1m7k4lv0l25ih2wskg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fns1m7k4lv0l25ih2wskg.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;VisuaLeaf’s visual query builder and chart workspace: build a joined MySQL query on the left, or turn an aggregated SQL result into a payment chart on the right.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;What I like&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One app for MongoDB and 36 other databases, which helps if your stack mixes both&lt;/li&gt;
&lt;li&gt;Diagrams you can create and reverse engineer, free for SQL databases&lt;/li&gt;
&lt;li&gt;Compare, sync, and masking sit next to the diagram, so you don’t need a second tool&lt;/li&gt;
&lt;li&gt;JSON fields can be expanded inside the diagram, which makes mixed relational and nested data easier to understand&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Disadvantages&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It’s a newer product, so tutorials and community answers are thinner than for DBeaver or DataGrip&lt;/li&gt;
&lt;li&gt;The heavier features, such as data compare and sync or dashboards, need the Professional plan&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://www.jetbrains.com/datagrip/" rel="noopener noreferrer"&gt;2. DataGrip&lt;/a&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Platform:&lt;/em&gt;&lt;/strong&gt;* Windows, macOS, Linux&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Databases:&lt;/em&gt;&lt;/strong&gt;* MySQL, MongoDB, PostgreSQL, and dozens more (JetBrains doesn’t publish an exact number)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* from $10.90/month or $109/year for individuals, $259/user/year for organizations. Free for non-commercial use&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Free trial:&lt;/em&gt;&lt;/strong&gt;* 30 days, starts directly in the app&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;DataGrip is JetBrains’ database IDE, and it’s the pick if you spend your day writing and refactoring SQL. The free license covers learning, hobby projects, open-source work, and content creation.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Key features&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;ER diagrams:&lt;/em&gt;&lt;/strong&gt;* generated automatically, showing tables, relationships, and foreign keys for a connected database&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Query console:&lt;/em&gt;&lt;/strong&gt;* run queries in different modes, with local history so you don’t lose work&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Code completion:&lt;/em&gt;&lt;/strong&gt;* aware of table structure, foreign keys, and the objects in the code you’re editing&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;On-the-fly analysis:&lt;/em&gt;&lt;/strong&gt;* flags probable bugs and suggests quick fixes&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Import and export:&lt;/em&gt;&lt;/strong&gt;* CSV, JSON, HTML, Markdown, Excel, and more&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Version control integration&lt;/em&gt;&lt;/strong&gt;* and query history&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;AI assistance:&lt;/em&gt;&lt;/strong&gt;* schema-aware help with queries, errors, and SQL dialect conversion&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Cloud discovery:&lt;/em&gt;&lt;/strong&gt;* finds databases in your AWS, Google Cloud, or Azure account&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frabrvzx5tf5xvswxztxu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frabrvzx5tf5xvswxztxu.png" alt="Dark-themed DataGrip database diagram showing ticketing tables, including events, ticket inventory, seats, customers, payments, and reservations, connected by foreign-key relationships." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DataGrip database diagram generated from the live &lt;code&gt;super_bowl_ticketing&lt;/code&gt; MySQL schema.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F32vklobdpi0v9hlncme1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F32vklobdpi0v9hlncme1.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffhbh2f8e2m5pymp5s80e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffhbh2f8e2m5pymp5s80e.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DataGrip generates DDL for existing MySQL tables and compares schema changes before creating a migration script.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;What I like&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Smart completion, refactoring, and inspections for SQL&lt;/li&gt;
&lt;li&gt;ER diagrams without leaving the IDE&lt;/li&gt;
&lt;li&gt;The free non-commercial license is a real option for students and side projects&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Disadvantages&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Commercial work needs a paid subscription&lt;/li&gt;
&lt;li&gt;It’s built for working with existing databases, not for designing new ones from a blank page&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://dbschema.com/" rel="noopener noreferrer"&gt;3. DbSchema&lt;/a&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Platform:&lt;/em&gt;&lt;/strong&gt;* Windows, macOS, Linux&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Databases:&lt;/em&gt;&lt;/strong&gt;* MySQL, MongoDB, PostgreSQL, and 70+ more&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* free Community Edition. Pro $294 one-time ($196 for personal use), Architect $470.40 one-time. Both include the first year of updates, then $75/year (Pro) or $120/year (Architect) to keep getting new versions. Monthly plans are also available&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Free trial:&lt;/em&gt;&lt;/strong&gt;* 15 days of the Architect edition, one click, no card.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;DbSchema is a good design-first tool from the group. The diagram is the model, and you can save it to a file and work on it without a database connection. Community is free forever and covers connecting, reverse engineering, interactive diagrams, creating tables and columns, and a SQL editor. Pro and Architect add the design workflow on top.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Key features&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Interactive diagrams:&lt;/em&gt;&lt;/strong&gt;* reverse engineer a live database, or create and edit tables and columns visually. Free in Community&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;SQL editor:&lt;/em&gt;&lt;/strong&gt;* with autocompletion, free in Community&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Offline model file:&lt;/em&gt;&lt;/strong&gt;* save the design to a file and work without a connection (Pro). The file works well with Git&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Schema synchronization:&lt;/em&gt;&lt;/strong&gt;* compare, diff, and generate migration scripts (Pro)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Documentation:&lt;/em&gt;&lt;/strong&gt;* interactive HTML5, PDF, and Markdown (Pro)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Visual query builder and relational data browse&lt;/em&gt;&lt;/strong&gt;* (Pro)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Data generator and importer:&lt;/em&gt;&lt;/strong&gt;* fill tables with test data, load CSV, XML and XLS files (Pro)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Logical and conceptual design:&lt;/em&gt;&lt;/strong&gt;* database-independent models that you can migrate to a physical schema later (Architect)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;AI assistant:&lt;/em&gt;&lt;/strong&gt;* a separate $9/month add-on for any edition, or your own key in Architect&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgrm240hbo2sgbgzhlxcy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgrm240hbo2sgbgzhlxcy.png" alt="DbSchema offline MySQL schema diagram." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DbSchema keeps an offline visual model of the MySQL schema, including grouped tables, relationships, and expanded JSON fields.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhl2g7ak46te8h096ay0t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhl2g7ak46te8h096ay0t.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgmmiseci190chgx5ec9q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgmmiseci190chgx5ec9q.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DbSchema’s Relational Data Editor follows connected rows across linked panes, from a venue to its events, orders, and reservations.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;What I like&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You can model before the database exists, which most tools here can't do&lt;/li&gt;
&lt;li&gt;Diagrams, reverse engineering, and the SQL editor are free for every supported database&lt;/li&gt;
&lt;li&gt;Git-friendly model file and generated documentation make it good for teams&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Disavantages&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Saving the model, documentation, and schema sync need a paid edition. When the trial ends, Community can't open the project files you saved&lt;/li&gt;
&lt;li&gt;Steeper learning curve: its model-first workflow and many features can feel less straightforward for beginners than a simpler live database client.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://dbeaver.com/" rel="noopener noreferrer"&gt;&lt;strong&gt;5. DBeaver&lt;/strong&gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Platform:&lt;/em&gt;&lt;/strong&gt;* Windows, macOS, Linux&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Databases:&lt;/em&gt;&lt;/strong&gt;* MySQL, MongoDB (paid editions), PostgreSQL, and 100+ more&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* free Community Edition. Lite $113/year ($12/month), Enterprise $255/year ($26/month), Ultimate $510/year&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Free trial:&lt;/em&gt;&lt;/strong&gt;* 15 days. Create an account, then import the license key into the app (the most involved sign-up of the eight)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;DBeaver is the free all-rounder. The Community edition is open source and works with 100+ databases, and the paid editions add schema editing, comparison tools, and NoSQL support. It’s a general database tool first and a design tool second.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Key features&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;ER diagrams:&lt;/em&gt;&lt;/strong&gt;* for a whole schema or a single table, in every edition. Editing the schema from the diagram (ERD edit mode) starts at Enterprise&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;SQL editor and data editor:&lt;/em&gt;&lt;/strong&gt;* with query history and inline editing&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Visual query builder:&lt;/em&gt;&lt;/strong&gt;* build queries by clicking tables and columns (paid editions)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Import, export, and charts:&lt;/em&gt;&lt;/strong&gt;* move data between databases and files, and draw analytical charts&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Schema comparison and table data comparison:&lt;/em&gt;&lt;/strong&gt;* (Enterprise)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Mock data generation:&lt;/em&gt;&lt;/strong&gt;* fill tables with test data (Enterprise)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Git sync and task scheduler:&lt;/em&gt;&lt;/strong&gt;* (Enterprise)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl68y5e889j1n8ilrz0r8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl68y5e889j1n8ilrz0r8.png" alt="DBeaver ER diagram showing MySQL ticketing tables such as customers, ticket orders, events, payments, reservations, and seats linked by foreign-key relationships." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DBeaver turns a live MySQL schema into a navigable ER map; it's useful when you need to understand an existing database rather than design one from scratch.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fghuqtat08zfdtlysfv50.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fghuqtat08zfdtlysfv50.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fczyitr3fd8rro6s6co62.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fczyitr3fd8rro6s6co62.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DBeaver goes beyond the diagram: compare a changed schema, then build a joined query visually and inspect the SQL it produces.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;What I like&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A genuinely useful free edition, ER diagrams included&lt;/li&gt;
&lt;li&gt;Huge database coverage and a solid SQL editor&lt;/li&gt;
&lt;li&gt;Easy to browse and edit real data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Disadvantages&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Diagrams exist to explore a database, and editing the schema from them is an Enterprise feature&lt;/li&gt;
&lt;li&gt;Starting the trial is the most involved of the eight: account, email, then a license key to import&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://www.navicat.com/en/products/navicat-premium" rel="noopener noreferrer"&gt;5. Navicat&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;Navicat is the polished, long-established name in this group. It is a live-connection tool first, but the Enterprise edition adds a proper modelling workspace. Instead of only generating a diagram from an existing database, you can start with a conceptual, logical, physical, or hybrid design and take it forward to MySQL.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Key features&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Model-first design (Enterprise):&lt;/em&gt;&lt;/strong&gt;* start with a conceptual, logical, physical, or hybrid model. For physical models, choose the target database and version before adding tables.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Naming standards and documentation:&lt;/em&gt;&lt;/strong&gt;* create naming rules, a shared glossary, and a data dictionary alongside the model.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Forward and reverse engineering (Enterprise):&lt;/em&gt;&lt;/strong&gt;* reverse-engineer a live database or SQL file into a model, then generate SQL or synchronize the finished model back to a database.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Live ER diagram:&lt;/em&gt;&lt;/strong&gt;* Standard and Enterprise can also generate a quick diagram from an existing schema. It supports MySQL, Oracle, PostgreSQL, SQLite, SQL Server, and MariaDB.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Structure and data synchronization:&lt;/em&gt;&lt;/strong&gt;* compare two databases and generate the scripts needed to bring them back in sync.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Navicat Collaboration:&lt;/em&gt;&lt;/strong&gt;* share connections, queries, snippets&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Import, export, backup, and SSH tunneling:&lt;/em&gt;&lt;/strong&gt;* covers the everyday work around a live database connection.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh6tfcgjs333v175v0024.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh6tfcgjs333v175v0024.png" alt="Navicat ER diagram of a MySQL ticketing database." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Navicat generates a physical ER diagram from the MySQL ticketing schema, with fields, keys, and foreign-key links visible in one view.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhqbajbad6wwbl6phx2g9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhqbajbad6wwbl6phx2g9.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuz2oxg4sjbp6dt7z01jv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuz2oxg4sjbp6dt7z01jv.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Navicat Enterprise pairs a proper modelling workspace with BI dashboards, so you can plan a database before building it and present data through charts afterward.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;What I like&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A mature, polished interface with a long track record&lt;/li&gt;
&lt;li&gt;Sync and collaboration tools are strong for teams working across several databases&lt;/li&gt;
&lt;li&gt;The Premium Lite edition is free for commercial use, up to 5 users per organization&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Disadvantages&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It has the highest price on the list, and the free Premium Lite has no ER diagram view&lt;/li&gt;
&lt;li&gt;The full modelling workspace may feel like overkill if you only need a quick, simple schema diagram.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://dbvis.com/" rel="noopener noreferrer"&gt;6. DbVisualizer&lt;/a&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Platform:&lt;/em&gt;&lt;/strong&gt;* Windows, macOS, Linux&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Databases:&lt;/em&gt;&lt;/strong&gt;* MySQL, PostgreSQL, and 60+ others via JDBC&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* Free edition. Pro is $199 for the first year, then $89/year. Premium Support is $229 for the first year, then $119/year. A paid term includes a perpetual license for versions released during that period.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Free trial:&lt;/em&gt;&lt;/strong&gt;* 21 days of Pro. Create an account, then start the trial from the app.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;DbVisualizer is a mature JDBC database client built for databases that already exist. It is good for exploring a live schema, writing SQL, browsing data, and following relationships, but it is not really a design-from-scratch tool. The Free edition covers the essentials, while Pro adds data editing, visual querying, and analysis tools.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Key features&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;References graph (Free):&lt;/em&gt;&lt;/strong&gt;* automatically maps primary and foreign keys, offers several layouts, and exports to PNG, SVG, or PDF.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;SQL editor and query history (Free):&lt;/em&gt;&lt;/strong&gt;* write queries, revisit previous work, and reuse it when needed.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Connection management and SSH tunnelling (Free):&lt;/em&gt;&lt;/strong&gt;* manage multiple databases and connect securely to remote servers.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Table and data editor (Pro):&lt;/em&gt;&lt;/strong&gt;* edit table structures and data directly in the app.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Import and export tools (Pro):&lt;/em&gt;&lt;/strong&gt;* move data between files and databases.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Visual Query Builder (Pro):&lt;/em&gt;&lt;/strong&gt;* build &lt;code&gt;SELECT&lt;/code&gt; queries visually instead of writing every join and filter by hand.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Explain plan and charts (Pro):&lt;/em&gt;&lt;/strong&gt;* inspect query performance and turn result sets into charts.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;CLI and AI Assistant (Pro):&lt;/em&gt;&lt;/strong&gt;* run DbVisualizer from the command line or use its built-in AI help.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj64qzqmjr820648zw22k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj64qzqmjr820648zw22k.png" alt="DbVisualizer references graph of a MySQL ticketing schema." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DbVisualizer’s References graph automatically maps the foreign-key structure of the live MySQL ticketing database.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdvsubz1znw57822dcfri.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdvsubz1znw57822dcfri.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffs7raoazldl0ujwr00sh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffs7raoazldl0ujwr00sh.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DbVisualizer Pro can load a multi-table SQL query into its visual builder, then turn an aggregated result into a chart directly in SQL Commander.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;What I like&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The references graph is included in the free edition&lt;/li&gt;
&lt;li&gt;Works with any JDBC database, with extra support for the common ones&lt;/li&gt;
&lt;li&gt;Pro is cheap to renew, and your license is perpetual for the versions released during your term&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Disavantages&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The graph is built from existing foreign keys, so it is a viewer, not a modeling tool. There is no offline model file or design-first workflow&lt;/li&gt;
&lt;li&gt;Table management, the data editor, and the query builder are all Pro. The trial needs an account before you can start it&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://tableplus.com/" rel="noopener noreferrer"&gt;7. TablePlus&lt;/a&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Platform:&lt;/em&gt;&lt;/strong&gt;* macOS, Windows, Linux (plus iOS)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Databases:&lt;/em&gt;&lt;/strong&gt;* MySQL, PostgreSQL, SQLite, SQL Server, MariaDB, Redis, MongoDB, and more (13 in total)&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* free tier with limits. Basic $99 one-time (1 device), Standard $129 one-time (2 devices), Team $79 per seat from 3 seats. Each includes 1 year of updates, then an optional $59/device renewal&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Free trial:&lt;/em&gt;&lt;/strong&gt;* 14 days, no sign-up needed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;TablePlus is the fast, native client of the group. It is built for people who spend their day in the data grid and want a quick, clean interface with a one-time price. It focuses on everyday database work rather than design, so schema diagrams are an add-on, not a core feature.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Key features&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Native interface:&lt;/em&gt;&lt;/strong&gt;* fast to open and responsive on large tables&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Data editor:&lt;/em&gt;&lt;/strong&gt;* edit rows inline and review changes before you commit them&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Advanced filters and query editor:&lt;/em&gt;&lt;/strong&gt;* with autocompletion&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Safe mode:&lt;/em&gt;&lt;/strong&gt;* helps prevent accidental changes on production databases&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Built-in ER diagram:&lt;/em&gt;&lt;/strong&gt;* generate a diagram directly from a live database or schema, then move tables around, zoom in, search for objects, and edit tables, columns, indexes, or foreign keys from the diagram.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Plugin manager:&lt;/em&gt;&lt;/strong&gt;* install extra tools such as a SQL formatter or table dump&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;iOS app:&lt;/em&gt;&lt;/strong&gt;* included for free with a valid license&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feczynatlm59wzu07e3uu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feczynatlm59wzu07e3uu.png" alt="TablePlus ER diagram of a MySQL ticketing schema." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;TablePlus generates a clean ER diagram from the live MySQL ticketing database, with related tables and foreign-key links visible at a glance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy0j75o0p5drtuv9evcga.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy0j75o0p5drtuv9evcga.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F30cqs3hxv42nh8k0wh5v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F30cqs3hxv42nh8k0wh5v.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;TablePlus combines a small SQL-powered Metrics Board with a fast spreadsheet-style grid for inspecting individual ticket orders.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;What I like&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fast, native, and pleasant to use every day&lt;/li&gt;
&lt;li&gt;A one-time price, and the app keeps working after the first year of updates&lt;/li&gt;
&lt;li&gt;Opens the free tier without any sign-up&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Disavantages&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The free tier is limited to 2 tabs, 2 windows, and 2 advanced filters at a time&lt;/li&gt;
&lt;li&gt;Supports fewer databases than other tools&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://www.beekeeperstudio.io/" rel="noopener noreferrer"&gt;8. Beekeeper Studio&lt;/a&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Platform:&lt;/em&gt;&lt;/strong&gt;* Windows, macOS, Linux&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Databases:&lt;/em&gt;&lt;/strong&gt;* MySQL, PostgreSQL, SQLite, SQL Server, and 22 more (26 in total). Some engines are paid-only: Oracle from Indie, MongoDB from Professional&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Price:&lt;/em&gt;&lt;/strong&gt;* free Community Edition (open source). Indie $9/month, Professional $14/month, Business $18/month, all billed yearly. Monthly billing costs about double. Every paid plan includes a lifetime license for the versions released during your subscription&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Free trial:&lt;/em&gt;&lt;/strong&gt;* 14 days of all paid features. Install the app, click "start free trial," and you're in, no email, account, or card needed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Beekeeper Studio is a clean SQL client with an open-source Community edition. The ER diagram (called the Visual Schema Explorer) is built in, but it's a paid feature: it isn't included in the Community edition, and the trial unlocks it.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Key features&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;ER diagrams (paid):&lt;/em&gt;&lt;/strong&gt;* turn a live database schema into a visual map of its tables and foreign-key links. You can move tables around, use auto-layout when it gets messy, then export or copy the result.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Table structure editor:&lt;/em&gt;&lt;/strong&gt;* create or change tables, relations, triggers, and indexes without writing every statement by hand.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;SQL editor and data grid:&lt;/em&gt;&lt;/strong&gt;* write SQL with autocomplete, then browse and edit rows in a clean spreadsheet-style view.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;Import, export, backup, and restore (paid):&lt;/em&gt;&lt;/strong&gt;* useful for moving data around and keeping database backups close.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;JSON Sidebar (paid):&lt;/em&gt;&lt;/strong&gt;* opens a selected row as formatted JSON, which is much easier to read than a long JSON value in one cell.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;AI Shell and Cloud Workspaces (Professional+):&lt;/em&gt;&lt;/strong&gt;* use your own AI provider to explore the schema and help write SQL, or sync connections and saved queries across devices and with a team.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdsbtee47nwwm66s3gr2u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdsbtee47nwwm66s3gr2u.png" alt="Beekeeper Studio ER diagram of a MySQL ticketing database." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Beekeeper Studio’s trial maps the foreign-key relationships in the MySQL ticketing database, keeping the overview focused on how tables connect.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Folwmznbtts8ijcsds90o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Folwmznbtts8ijcsds90o.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmucp46x3ja6ro50lrez7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmucp46x3ja6ro50lrez7.png" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Beekeeper Studio makes everyday database work straightforward: filter live payment records in the grid, then save and run a multi-table query from the SQL editor.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;What I liked:&lt;/em&gt;&lt;/strong&gt;* Beekeeper Studio is one of the easiest tools here to pick up. The interface is clean, browsing and editing data feels quick, and the SQL editor does not bury basic work behind lots of menus.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;Disadvantages:&lt;/em&gt;&lt;/strong&gt;* The limitation comes after the trial: the free Community Edition does not include ER diagrams, import/export, or the JSON Sidebar. The ER diagram is also mainly built for following relationships; the full-database view keeps only primary and foreign keys visible, while a focused selection shows more detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  So which one should you pick?
&lt;/h2&gt;

&lt;p&gt;There’s no single winner, because these tools are built around different jobs. Start with whether you’re designing a schema from scratch or exploring one that already exists.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;You work with more than one kind of database:&lt;/em&gt;&lt;/strong&gt;* &lt;a href="https://visualeaf.com/database/" rel="noopener noreferrer"&gt;VisuaLeaf&lt;/a&gt;. It has ER diagrams you can create and reverse engineer, free for SQL databases. The same app also works with MongoDB, DuckDB, ClickHouse, and more (37 in total). It’s the newest tool here, so expect fewer community answers.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;You want to design a schema before the database exists:&lt;/em&gt;&lt;/strong&gt;* DbSchema. Diagrams are free, but saving the model file and generating docs need Pro.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;You want free ER diagrams:&lt;/em&gt;&lt;/strong&gt;* DBeaver Community, or the DbVisualizer free edition. Editing the schema from the diagram is paid in DBeaver.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;You write SQL all day:&lt;/em&gt;&lt;/strong&gt;* DataGrip, which is free for non-commercial use.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;You want a fast native app with a one-time price:&lt;/em&gt;&lt;/strong&gt;* TablePlus, if you’re fine with a diagram plugin and the free tier limits.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;You want the cleanest interface and an open-source core:&lt;/em&gt;&lt;/strong&gt;* Beekeeper Studio. Its ER diagram is in the paid editions, and the trial is the easiest to start.&lt;/li&gt;
&lt;li&gt;*&lt;strong&gt;&lt;em&gt;You manage several databases as a team and have the budget:&lt;/em&gt;&lt;/strong&gt;* Navicat. It’s the most expensive option here, and the diagram view isn’t in the free Lite edition.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All eight have a free edition or a trial, so the quickest way to decide is to point two or three of them at the same database and see which diagram your team can read.&lt;/p&gt;

&lt;h2&gt;
  
  
  Strengths and weaknesses
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Visual ER diagrams&lt;/th&gt;
&lt;th&gt;Biggest strength&lt;/th&gt;
&lt;th&gt;Biggest weakness&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;VisuaLeaf&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Create from scratch or reverse-engineer an existing SQL database; free for SQL databases&lt;/td&gt;
&lt;td&gt;MongoDB plus 36 other databases in one app, with compare, sync, and data masking&lt;/td&gt;
&lt;td&gt;Newer product, with a smaller community than DBeaver or DataGrip&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DataGrip&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Generated from a connected database&lt;/td&gt;
&lt;td&gt;The strongest SQL editor and refactoring help in this group&lt;/td&gt;
&lt;td&gt;Paid for commercial use and aimed at databases that already exist&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DbSchema&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Design-first, offline model file&lt;/td&gt;
&lt;td&gt;Model before a database exists, with Git support and interactive HTML documentation&lt;/td&gt;
&lt;td&gt;Its model-first workflow can feel heavier than a simple live database client&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DBeaver&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Generated from a connection in every edition; diagram editing is Enterprise-only&lt;/td&gt;
&lt;td&gt;A capable free Community edition with 100+ drivers&lt;/td&gt;
&lt;td&gt;Visual schema editing is paid, and starting the trial is more involved than the others&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Navicat&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Live ER diagrams in Premium; full data modelling in Enterprise&lt;/td&gt;
&lt;td&gt;Polished sync, collaboration, and modelling tools&lt;/td&gt;
&lt;td&gt;The most expensive option here, while Premium Lite has no diagrams&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DbVisualizer&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;References graph, including in the free edition&lt;/td&gt;
&lt;td&gt;Export a clear relationship graph as PNG, SVG, or PDF&lt;/td&gt;
&lt;td&gt;It reads existing foreign keys; it is not a design-from-scratch tool&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;TablePlus&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Built-in ER diagram in paid editions, generated from a live database or schema&lt;/td&gt;
&lt;td&gt;Fast native client with a one-time license option&lt;/td&gt;
&lt;td&gt;The free tier limits workspaces and locks several advanced features&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Beekeeper Studio&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Auto-generated in paid editions and during the trial; the main view focuses on keys and relationships&lt;/td&gt;
&lt;td&gt;One of the cleanest, easiest interfaces, with an open-source Community edition&lt;/td&gt;
&lt;td&gt;Community does not include ER diagrams, import/export, or the JSON Sidebar&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h4&gt;
  
  
  Which database design tool is best?
&lt;/h4&gt;

&lt;p&gt;It depends on the job: VisuaLeaf or DBeaver for broader everyday database work; DbSchema is strong for planning; and DataGrip for SQL.  &lt;/p&gt;

&lt;h4&gt;
  
  
  Are there free ER diagram tools?
&lt;/h4&gt;

&lt;p&gt;Yes. DBeaver Community, DbVisualizer Free, DbSchema Community, and VisuaLeaf for SQL databases all include diagram features.&lt;/p&gt;

&lt;h4&gt;
  
  
  Can I generate an ER diagram from an existing MySQL database?
&lt;/h4&gt;

&lt;p&gt;Yes. Connect the database and reverse engineer its tables, primary keys, and foreign keys into a diagram.&lt;/p&gt;

&lt;h4&gt;
  
  
  Can I design a schema before creating the database?
&lt;/h4&gt;

&lt;p&gt;Yes. VisuaLeaf and DbSchema let you plan the structure first, then generate the SQL later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;Try two or three tools with the same database before choosing one. The best option is the one whose diagram, SQL editor, and everyday workflow make sense to you and your team.&lt;/p&gt;

&lt;p&gt;If you want to try the workflow used in this article, &lt;a href="https://visualeaf.com/download" rel="noopener noreferrer"&gt;download VisuaLeaf&lt;/a&gt; for free and connect it to your &lt;a href="https://visualeaf.com/database/mysql/" rel="noopener noreferrer"&gt;MySQL&lt;/a&gt;, &lt;a href="https://visualeaf.com/database/postgresql/" rel="noopener noreferrer"&gt;PostgreSQL&lt;/a&gt;, &lt;a href="https://visualeaf.com/database/mongodb-gui-tool/" rel="noopener noreferrer"&gt;MongoDB&lt;/a&gt;, or another supported database.&lt;/p&gt;

</description>
      <category>sql</category>
      <category>database</category>
      <category>software</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>Best MySQL Database Design Tools in 2026</title>
      <dc:creator>VisuaLeaf</dc:creator>
      <pubDate>Mon, 26 Oct 2026 12:57:02 +0000</pubDate>
      <link>https://dev.to/visualeaf/best-mysql-database-design-tools-in-2026-1po1</link>
      <guid>https://dev.to/visualeaf/best-mysql-database-design-tools-in-2026-1po1</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/roxana_haidiner/best-mysql-database-design-tools-in-2025-4f01" class="crayons-story__hidden-navigation-link"&gt;Best MySQL Database Design Tools in 2026&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/roxana_haidiner" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2224346%2Ff71cca7a-b282-4793-a3ae-b04d89957d47.png" alt="roxana_haidiner profile" class="crayons-avatar__image" width="512" height="512"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/roxana_haidiner" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Roxana-Maria Haidiner
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Roxana-Maria Haidiner
                
                
              
              &lt;div id="story-author-preview-content-2586545" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/roxana_haidiner" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2224346%2Ff71cca7a-b282-4793-a3ae-b04d89957d47.png" class="crayons-avatar__image" alt="" width="512" height="512"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Roxana-Maria Haidiner&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/roxana_haidiner/best-mysql-database-design-tools-in-2025-4f01" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Jun 12 '25&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/roxana_haidiner/best-mysql-database-design-tools-in-2025-4f01" id="article-link-2586545"&gt;
          Best MySQL Database Design Tools in 2026
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/mysql"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;mysql&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/database"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;database&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/designtools"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;designtools&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/databasemanagement"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;databasemanagement&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/roxana_haidiner/best-mysql-database-design-tools-in-2025-4f01" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/fire-f60e7a582391810302117f987b22a8ef04a2fe0df7e3258a5f49332df1cec71e.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/raised-hands-74b2099fd66a39f2d7eed9305ee0f4553df0eb7b4f11b01b6b1b499973048fe5.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;14&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/roxana_haidiner/best-mysql-database-design-tools-in-2025-4f01#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              3&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            9 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Top Free ER Diagram Tools for PostgreSQL in 2026</title>
      <dc:creator>VisuaLeaf</dc:creator>
      <pubDate>Mon, 26 Oct 2026 12:47:31 +0000</pubDate>
      <link>https://dev.to/visualeaf/top-free-er-diagram-tools-for-postgresql-in-2026-5337</link>
      <guid>https://dev.to/visualeaf/top-free-er-diagram-tools-for-postgresql-in-2026-5337</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/roxana_haidiner/top-free-er-diagram-tools-for-postgresql-in-2025-22ga" class="crayons-story__hidden-navigation-link"&gt;Top Free ER Diagram Tools for PostgreSQL in 2026&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/roxana_haidiner" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2224346%2Ff71cca7a-b282-4793-a3ae-b04d89957d47.png" alt="roxana_haidiner profile" class="crayons-avatar__image" width="512" height="512"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/roxana_haidiner" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Roxana-Maria Haidiner
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Roxana-Maria Haidiner
                
                
              
              &lt;div id="story-author-preview-content-2686997" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/roxana_haidiner" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2224346%2Ff71cca7a-b282-4793-a3ae-b04d89957d47.png" class="crayons-avatar__image" alt="" width="512" height="512"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Roxana-Maria Haidiner&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/roxana_haidiner/top-free-er-diagram-tools-for-postgresql-in-2025-22ga" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Jul 14 '25&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/roxana_haidiner/top-free-er-diagram-tools-for-postgresql-in-2025-22ga" id="article-link-2686997"&gt;
          Top Free ER Diagram Tools for PostgreSQL in 2026
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/postgres"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;postgres&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/postgressql"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;postgressql&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/sql"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;sql&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/database"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;database&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/roxana_haidiner/top-free-er-diagram-tools-for-postgresql-in-2025-22ga" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/fire-f60e7a582391810302117f987b22a8ef04a2fe0df7e3258a5f49332df1cec71e.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;13&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/roxana_haidiner/top-free-er-diagram-tools-for-postgresql-in-2025-22ga#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              2&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            9 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;


</description>
    </item>
    <item>
      <title>ER Diagram vs Database Schema: What’s the Difference?</title>
      <dc:creator>VisuaLeaf</dc:creator>
      <pubDate>Wed, 21 Oct 2026 13:35:54 +0000</pubDate>
      <link>https://dev.to/visualeaf/er-diagram-vs-database-schema-whats-the-difference-1g1k</link>
      <guid>https://dev.to/visualeaf/er-diagram-vs-database-schema-whats-the-difference-1g1k</guid>
      <description>&lt;p&gt;An &lt;a href="https://visualeaf.com/features/visual-schema/" rel="noopener noreferrer"&gt;ER diagram&lt;/a&gt; and a &lt;a href="https://visualeaf.com/blog/what-is-a-sql-database-schema-and-how-do-you-design-one/" rel="noopener noreferrer"&gt;database schema&lt;/a&gt; can look like the same thing at first. They are related, but they are used at different moments: first, you plan how the data should connect; then you create the real tables, columns, keys, and rules in the database.&lt;/p&gt;

&lt;p&gt;Think of a clinic named HyperClinic. This clinic needs to store patients, doctors, specializations, and appointments.&lt;/p&gt;

&lt;p&gt;A quick way to do this is to store everything in one table, called &lt;code&gt;appointments&lt;/code&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;appointment_id&lt;/td&gt;
&lt;td&gt;patient_name&lt;/td&gt;
&lt;td&gt;patient_phone&lt;/td&gt;
&lt;td&gt;doctor_name&lt;/td&gt;
&lt;td&gt;specialization&lt;/td&gt;
&lt;td&gt;appointment_time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;Marit Solheim&lt;/td&gt;
&lt;td&gt;555-0147&lt;/td&gt;
&lt;td&gt;Owen Wilson&lt;/td&gt;
&lt;td&gt;Cardiology&lt;/td&gt;
&lt;td&gt;2026-10-20 10:00&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This approach works for one row, but it causes problems when you add another appointment for Marit, change Dr. Wilson's specialization, or have two patients with the same name.&lt;/p&gt;

&lt;p&gt;The patient information is repeated. The doctor information is repeated. A typo can lead to inconsistency. And nothing prevents creating an appointment for a doctor who does not exist.&lt;/p&gt;

&lt;p&gt;To avoid these problems, the team needs to plan the database before creating tables.&lt;/p&gt;

&lt;h2&gt;
  
  
  ER Diagram vs Database Schema
&lt;/h2&gt;

&lt;p&gt;The key point of differentiation is not the shape of the boxes and arrows. It is the stage of development.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Stage&lt;/td&gt;
&lt;td&gt;Key question&lt;/td&gt;
&lt;td&gt;Objects defined&lt;/td&gt;
&lt;td&gt;What the diagram shows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conceptual ER diagram&lt;/td&gt;
&lt;td&gt;What does the company need to store?&lt;/td&gt;
&lt;td&gt;Entities and relationships&lt;/td&gt;
&lt;td&gt;Boxes and lines, no fields&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Logical data model&lt;/td&gt;
&lt;td&gt;How should the data be structured?&lt;/td&gt;
&lt;td&gt;Attributes, keys, normalized relationships&lt;/td&gt;
&lt;td&gt;Fields with key icons and relationship lines, no data types&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Physical database schema&lt;/td&gt;
&lt;td&gt;How will PostgreSQL implement it?&lt;/td&gt;
&lt;td&gt;Tables, columns, data types, constraints, indexes, and DDL statements&lt;/td&gt;
&lt;td&gt;Fields with data types&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A *&lt;strong&gt;&lt;em&gt;schema diagram&lt;/em&gt;&lt;/strong&gt;* is a graphic representation of the database schema. Such diagrams are also referred to as &lt;a href="https://www.geeksforgeeks.org/dbms/introduction-of-er-model/" rel="noopener noreferrer"&gt;physical ER diagrams.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.geeksforgeeks.org/dbms/database-schemas/" rel="noopener noreferrer"&gt;A *&lt;strong&gt;&lt;em&gt;database schema&lt;/em&gt;&lt;/strong&gt;*&lt;/a&gt; is the actual structure stored in PostgreSQL and comprises objects such as tables, columns, primary and foreign keys, constraints, and indexes.&lt;/p&gt;

&lt;p&gt;Thus, this is not a binary choice. A database design is typically developed from an ER diagram through the logical data model to the database schema.&lt;/p&gt;

&lt;p&gt;In this article, we will build HyperClinic in the same order: Step 1 is the conceptual ER diagram, Steps 2 to 4 build the logical model, and Step 5 creates the physical PostgreSQL schema.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the Requirements
&lt;/h2&gt;

&lt;p&gt;Nobody will start writing &lt;code&gt;CREATE TABLE&lt;/code&gt; before the team figures out the task.&lt;/p&gt;

&lt;p&gt;In our case, HyperClinic must be able to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;save patient information&lt;/li&gt;
&lt;li&gt;save doctors and their specializations&lt;/li&gt;
&lt;li&gt;create appointments&lt;/li&gt;
&lt;li&gt;show which patient sees which doctor&lt;/li&gt;
&lt;li&gt;ensure appointments refer to existing patients and doctors&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The job names depend on the company. Requirements may be gathered by a business analyst and designed by a database architect, data modeler, backend developer, or DBA. In a small company, one person may do several of these jobs.&lt;/p&gt;

&lt;p&gt;What is important is the workflow, not the name.&lt;/p&gt;

&lt;p&gt;The team should ask itself such questions as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is it possible for one patient to have several appointments?&lt;/li&gt;
&lt;li&gt;Is it possible for one doctor to have many patients?&lt;/li&gt;
&lt;li&gt;Do all doctors have only one specialization?&lt;/li&gt;
&lt;li&gt;Is it possible to create an appointment without a doctor?&lt;/li&gt;
&lt;li&gt;Is it possible to create two appointments with the same doctor for the same time?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are the business rules that PostgreSQL won't be able to guess.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Create the Conceptual ER Diagram
&lt;/h2&gt;

&lt;p&gt;Before deciding on columns, data types, or SQL, first identify what HyperClinic needs to store:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Patient&lt;/li&gt;
&lt;li&gt;Doctor&lt;/li&gt;
&lt;li&gt;Appointment&lt;/li&gt;
&lt;li&gt;Specialization&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An *&lt;strong&gt;&lt;em&gt;entity&lt;/em&gt;&lt;/strong&gt;* is simply something the system needs to store.&lt;/p&gt;

&lt;p&gt;This is a *&lt;strong&gt;&lt;em&gt;conceptual ER diagram&lt;/em&gt;&lt;/strong&gt;*. It helps the team see the big picture without getting into implementation details. The boxes show the entities. The lines show their relationships. There are no columns, primary keys, foreign keys, or PostgreSQL data types yet.&lt;/p&gt;

&lt;p&gt;The relationships are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A patient has many appointments.&lt;/li&gt;
&lt;li&gt;A doctor has many appointments.&lt;/li&gt;
&lt;li&gt;An appointment is made by one patient and one doctor.&lt;/li&gt;
&lt;li&gt;A specialization has many doctors.&lt;/li&gt;
&lt;li&gt;Each doctor has one specialization.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh5u0oiknufw8i86j8zhq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh5u0oiknufw8i86j8zhq.png" alt=" " width="800" height="499"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Add Attributes and Primary Keys
&lt;/h2&gt;

&lt;p&gt;This is the point where the model becomes *&lt;strong&gt;&lt;em&gt;logical&lt;/em&gt;&lt;/strong&gt;*.&lt;/p&gt;

&lt;p&gt;The conceptual diagram tells us that HyperClinic has patients, doctors, appointments, and specializations. The logical model answers the next question: *&lt;strong&gt;&lt;em&gt;what information belongs to each one?&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;p&gt;You now add attributes, choose identifiers, and organize the data so the same fact is not stored in several places. You are still designing the structure. You are not choosing PostgreSQL types such as &lt;code&gt;VARCHAR(100)&lt;/code&gt; or &lt;code&gt;TIMESTAMP&lt;/code&gt; yet.&lt;/p&gt;

&lt;p&gt;Think of it like planning a house:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the conceptual diagram says the house needs a kitchen, bedrooms, and a bathroom;&lt;/li&gt;
&lt;li&gt;the logical model decides what belongs in each room;&lt;/li&gt;
&lt;li&gt;the physical schema gives the builder the exact materials and measurements.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The logical model takes three steps: attributes and primary keys (this step), normalization (Step 3), and foreign keys (Step 4).&lt;/p&gt;

&lt;p&gt;Start with the attributes. For each entity, write down what the system needs to know about it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Entity&lt;/td&gt;
&lt;td&gt;Attributes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Patient&lt;/td&gt;
&lt;td&gt;first name, last name, date of birth, phone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Doctor&lt;/td&gt;
&lt;td&gt;first name, last name, specialization&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Specialization&lt;/td&gt;
&lt;td&gt;name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Appointment&lt;/td&gt;
&lt;td&gt;patient, doctor, date and time, reason, status&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Then give every entity a *&lt;strong&gt;&lt;em&gt;primary key&lt;/em&gt;&lt;/strong&gt;*. A primary key is a column, or a set of columns, that uniquely identifies a row.&lt;/p&gt;

&lt;p&gt;For instance, &lt;code&gt;patient_id = 1&lt;/code&gt; must identify only one patient. A name cannot be used as a primary key, as patients can have the same name and names change over time.&lt;/p&gt;

&lt;p&gt;The same holds for doctors, specializations, and appointments: &lt;code&gt;doctor_id&lt;/code&gt;, &lt;code&gt;specialization_id&lt;/code&gt;, and &lt;code&gt;appointment_id&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Normalize the Logical Model
&lt;/h2&gt;

&lt;p&gt;Normalization means organizing data so each fact is stored in the right place, instead of being repeated in several places.&lt;/p&gt;

&lt;p&gt;You do not finish the ER diagram and normalize it later as a separate task. Usually, you draw the entities, test the structure, notice repeated data, and improve the model.&lt;/p&gt;

&lt;p&gt;The examples below start from a flat table. The services are only for illustration: the final HyperClinic model does not include them.&lt;/p&gt;

&lt;h3&gt;
  
  
  First Normal Form: One Value per Field
&lt;/h3&gt;

&lt;p&gt;First normal form, or *&lt;strong&gt;&lt;em&gt;1NF&lt;/em&gt;&lt;/strong&gt;*, means that one field should contain one value, not a list.&lt;/p&gt;

&lt;p&gt;× &lt;strong&gt;Not in 1NF:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;appointment_id&lt;/td&gt;
&lt;td&gt;patient_name&lt;/td&gt;
&lt;td&gt;doctor_name&lt;/td&gt;
&lt;td&gt;services&lt;/td&gt;
&lt;td&gt;appointment_at&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;Marit Solheim&lt;/td&gt;
&lt;td&gt;Owen Wilson&lt;/td&gt;
&lt;td&gt;Consultation, ECG&lt;/td&gt;
&lt;td&gt;2026-10-20 10:00&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code&gt;services&lt;/code&gt; field contains two values. This makes the data harder to filter, validate, or update.&lt;/p&gt;

&lt;p&gt;✓ &lt;strong&gt;In 1NF:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;appointment_id&lt;/td&gt;
&lt;td&gt;patient_name&lt;/td&gt;
&lt;td&gt;doctor_name&lt;/td&gt;
&lt;td&gt;service&lt;/td&gt;
&lt;td&gt;appointment_at&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;Marit Solheim&lt;/td&gt;
&lt;td&gt;Owen Wilson&lt;/td&gt;
&lt;td&gt;Consultation&lt;/td&gt;
&lt;td&gt;2026-10-20 10:00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;Marit Solheim&lt;/td&gt;
&lt;td&gt;Owen Wilson&lt;/td&gt;
&lt;td&gt;ECG&lt;/td&gt;
&lt;td&gt;2026-10-20 10:00&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each row now contains one service. However, the appointment, patient, and doctor information is repeated. The next step fixes that.&lt;/p&gt;

&lt;h3&gt;
  
  
  Second Normal Form: Each Field Depends on the Whole Key
&lt;/h3&gt;

&lt;p&gt;Second normal form, or &lt;strong&gt;2NF&lt;/strong&gt;, applies when a table uses a combined key.&lt;/p&gt;

&lt;p&gt;Here, one appointment can have more than one service. The combination of &lt;code&gt;appointment_id&lt;/code&gt; and &lt;code&gt;service&lt;/code&gt; identifies one row.&lt;/p&gt;

&lt;p&gt;× &lt;strong&gt;Not in 2NF:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;appointment_id&lt;/td&gt;
&lt;td&gt;service&lt;/td&gt;
&lt;td&gt;patient_name&lt;/td&gt;
&lt;td&gt;doctor_name&lt;/td&gt;
&lt;td&gt;appointment_at&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;Consultation&lt;/td&gt;
&lt;td&gt;Marit Solheim&lt;/td&gt;
&lt;td&gt;Owen Wilson&lt;/td&gt;
&lt;td&gt;2026-10-20 10:00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;ECG&lt;/td&gt;
&lt;td&gt;Marit Solheim&lt;/td&gt;
&lt;td&gt;Owen Wilson&lt;/td&gt;
&lt;td&gt;2026-10-20 10:00&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code&gt;patient_name&lt;/code&gt;, &lt;code&gt;doctor_name&lt;/code&gt;, and &lt;code&gt;appointment_at&lt;/code&gt; values depend only on &lt;code&gt;appointment_id&lt;/code&gt;. They do not depend on the full combination of &lt;code&gt;appointment_id&lt;/code&gt; and &lt;code&gt;service&lt;/code&gt;, so they are repeated.&lt;/p&gt;

&lt;p&gt;✓ &lt;strong&gt;In 2NF:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;appointments&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;appointment_id&lt;/td&gt;
&lt;td&gt;patient_name&lt;/td&gt;
&lt;td&gt;doctor_name&lt;/td&gt;
&lt;td&gt;appointment_at&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;Marit Solheim&lt;/td&gt;
&lt;td&gt;Owen Wilson&lt;/td&gt;
&lt;td&gt;2026-10-20 10:00&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;appointment_services&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;appointment_id&lt;/td&gt;
&lt;td&gt;service&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;Consultation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;ECG&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Now the appointment information is stored once. The &lt;code&gt;appointment_services&lt;/code&gt; table only stores the services linked to that appointment. The patient and doctor names are still text here. Step 4 replaces them with IDs.&lt;/p&gt;

&lt;h3&gt;
  
  
  Third Normal Form: Do Not Repeat Details That Belong Elsewhere
&lt;/h3&gt;

&lt;p&gt;Third normal form, or &lt;strong&gt;3NF&lt;/strong&gt;, removes indirect repetition.&lt;/p&gt;

&lt;p&gt;× &lt;strong&gt;Not in 3NF:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;doctor_id&lt;/td&gt;
&lt;td&gt;first_name&lt;/td&gt;
&lt;td&gt;last_name&lt;/td&gt;
&lt;td&gt;specialization_id&lt;/td&gt;
&lt;td&gt;specialization_name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Owen&lt;/td&gt;
&lt;td&gt;Wilson&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Cardiology&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Odile&lt;/td&gt;
&lt;td&gt;Marchetti&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Cardiology&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The specialization name depends on &lt;code&gt;specialization_id&lt;/code&gt;, not on the doctor. Storing it in &lt;code&gt;doctors&lt;/code&gt; means it will be repeated for every cardiologist.&lt;/p&gt;

&lt;p&gt;✓ &lt;strong&gt;In 3NF:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;doctors&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;doctor_id&lt;/td&gt;
&lt;td&gt;first_name&lt;/td&gt;
&lt;td&gt;last_name&lt;/td&gt;
&lt;td&gt;specialization_id&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Owen&lt;/td&gt;
&lt;td&gt;Wilson&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Odile&lt;/td&gt;
&lt;td&gt;Marchetti&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;specializations&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;specialization_id&lt;/td&gt;
&lt;td&gt;specialization_name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Cardiology&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Now &lt;code&gt;Cardiology&lt;/code&gt; is stored once. If the clinic changes its name, the team updates one row in &lt;code&gt;specializations&lt;/code&gt;, not every doctor.&lt;/p&gt;

&lt;p&gt;After normalization, each table holds only its own facts:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Table&lt;/td&gt;
&lt;td&gt;Example Columns&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;patients&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;patient_id&lt;/code&gt;, &lt;code&gt;first_name&lt;/code&gt;, &lt;code&gt;last_name&lt;/code&gt;, &lt;code&gt;date_of_birth&lt;/code&gt;, &lt;code&gt;phone&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;doctors&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;doctor_id&lt;/code&gt;, &lt;code&gt;first_name&lt;/code&gt;, &lt;code&gt;last_name&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;specializations&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;specialization_id&lt;/code&gt;, &lt;code&gt;specialization_name&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;appointments&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;appointment_id&lt;/code&gt;, &lt;code&gt;appointment_at&lt;/code&gt;, &lt;code&gt;reason&lt;/code&gt;, &lt;code&gt;status&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The lines show which tables are related, but the link columns, such as &lt;code&gt;specialization_id&lt;/code&gt; in &lt;code&gt;doctors&lt;/code&gt;, are not here yet. They come in the next step.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1cbucz79blqydqvzwt53.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1cbucz79blqydqvzwt53.png" alt=" " width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Link Related Tables with Foreign Keys
&lt;/h2&gt;

&lt;p&gt;To connect two tables, you add a column to one of them. That column is a &lt;strong&gt;foreign key&lt;/strong&gt;: it stores the ID of a row in the other table. This is how a relationship is made.&lt;/p&gt;

&lt;p&gt;An appointment should not store redundant information like a patient's name, phone, and date of birth.&lt;/p&gt;

&lt;p&gt;Instead, it stores the ID of the linked patient:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;appointment_id: 16
patient_id: 1
doctor_id: 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The field &lt;code&gt;appointments.patient_id&lt;/code&gt; is a &lt;strong&gt;foreign key&lt;/strong&gt; that references &lt;code&gt;patients.patient_id&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The field &lt;code&gt;appointments.doctor_id&lt;/code&gt; links to &lt;code&gt;doctors.doctor_id&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The field &lt;code&gt;doctors.specialization_id&lt;/code&gt; links to &lt;code&gt;specializations.specialization_id&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;A foreign key performs two functions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It describes the relationship between tables.&lt;/li&gt;
&lt;li&gt;It prevents invalid references.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Without a foreign key, you can insert an appointment with &lt;code&gt;patient_id = 9999&lt;/code&gt;, even if patient 9999 does not exist.&lt;/p&gt;

&lt;p&gt;If there is a foreign key, PostgreSQL rejects this record.&lt;/p&gt;

&lt;p&gt;A column named &lt;code&gt;patient_id&lt;/code&gt; alone does not create a foreign key. The &lt;code&gt;REFERENCES&lt;/code&gt; constraint creates it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7b1uoqrcndm3jvnvew5r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7b1uoqrcndm3jvnvew5r.png" alt=" " width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The diagram now shows the foreign key columns, marked with a link icon, and an arrow for each relationship. There are still no data types. Types depend on the database engine, so they come in the physical stage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Define the Physical PostgreSQL Model
&lt;/h2&gt;

&lt;p&gt;The physical model describes the PostgreSQL tables, columns, data types, and rules that you want to create.&lt;/p&gt;

&lt;p&gt;In this example, &lt;code&gt;INT&lt;/code&gt; is used for IDs (the diagram shows it as &lt;code&gt;INTEGER&lt;/code&gt;, which is the same type), &lt;code&gt;VARCHAR&lt;/code&gt; for text, &lt;code&gt;DATE&lt;/code&gt; for a date, and &lt;code&gt;TIMESTAMP&lt;/code&gt; for a date and time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9rl4t4co7gujryfap3cr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9rl4t4co7gujryfap3cr.png" alt=" " width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Create the Database Schema
&lt;/h3&gt;

&lt;p&gt;The physical model is ready. Now you need to create it on the PostgreSQL server.&lt;/p&gt;

&lt;p&gt;You can do this in either of two ways:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run the &lt;code&gt;CREATE SCHEMA&lt;/code&gt; and &lt;code&gt;CREATE TABLE&lt;/code&gt; statements in the &lt;a href="https://visualeaf.com/docs/sql-editor" rel="noopener noreferrer"&gt;SQL Editor.&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The following statements are DDL, short for Data Definition Language. DDL is the SQL used to create the database structure.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;SCHEMA&lt;/span&gt; &lt;span class="n"&gt;clinic&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;clinic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;specializations&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;specialization_id&lt;/span&gt; &lt;span class="kt"&gt;INT&lt;/span&gt; &lt;span class="no"&gt;GENERATED&lt;/span&gt; &lt;span class="no"&gt;ALWAYS&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="no"&gt;IDENTITY&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;specialization_name&lt;/span&gt; &lt;span class="kt"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;UNIQUE&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;clinic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;doctors&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;doctor_id&lt;/span&gt; &lt;span class="kt"&gt;INT&lt;/span&gt; &lt;span class="no"&gt;GENERATED&lt;/span&gt; &lt;span class="no"&gt;ALWAYS&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="no"&gt;IDENTITY&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;specialization_id&lt;/span&gt; &lt;span class="kt"&gt;INT&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;
    &lt;span class="k"&gt;REFERENCES&lt;/span&gt; &lt;span class="n"&gt;clinic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;specializations&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;specialization_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;first_name&lt;/span&gt; &lt;span class="kt"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;last_name&lt;/span&gt; &lt;span class="kt"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;clinic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;patients&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;patient_id&lt;/span&gt; &lt;span class="kt"&gt;INT&lt;/span&gt; &lt;span class="no"&gt;GENERATED&lt;/span&gt; &lt;span class="no"&gt;ALWAYS&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="no"&gt;IDENTITY&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;first_name&lt;/span&gt; &lt;span class="kt"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;last_name&lt;/span&gt; &lt;span class="kt"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;date_of_birth&lt;/span&gt; &lt;span class="kt"&gt;DATE&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;phone&lt;/span&gt; &lt;span class="kt"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;clinic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;appointments&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;appointment_id&lt;/span&gt; &lt;span class="kt"&gt;INT&lt;/span&gt; &lt;span class="no"&gt;GENERATED&lt;/span&gt; &lt;span class="no"&gt;ALWAYS&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="no"&gt;IDENTITY&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;patient_id&lt;/span&gt; &lt;span class="kt"&gt;INT&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;
    &lt;span class="k"&gt;REFERENCES&lt;/span&gt; &lt;span class="n"&gt;clinic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;patients&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;patient_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;doctor_id&lt;/span&gt; &lt;span class="kt"&gt;INT&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;
    &lt;span class="k"&gt;REFERENCES&lt;/span&gt; &lt;span class="n"&gt;clinic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;doctors&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;doctor_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;appointment_at&lt;/span&gt; &lt;span class="kt"&gt;TIMESTAMP&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;reason&lt;/span&gt; &lt;span class="kt"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="kt"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="s1"&gt;'scheduled'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="k"&gt;CONSTRAINT&lt;/span&gt; &lt;span class="n"&gt;appointments_status_check&lt;/span&gt;
    &lt;span class="k"&gt;CHECK&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'scheduled'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'completed'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'cancelled'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is how you can create it in VisuaLeaf's SQL Editor:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fphi5sfln1xcp637a3az7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fphi5sfln1xcp637a3az7.png" alt=" " width="800" height="508"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You can also use &lt;a href="https://visualeaf.com/docs/sql-visual-schema" rel="noopener noreferrer"&gt;&lt;strong&gt;Materialize&lt;/strong&gt;&lt;/a&gt; instead of running the SQL yourself. Starting with an empty database, VisuaLeaf creates the &lt;code&gt;clinic&lt;/code&gt; schema and its tables directly from the physical model.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Materialize can also apply later changes. In this example, the four original clinic tables already exist, so they are marked as up to date while the new &lt;code&gt;lab_results&lt;/code&gt; table is created.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffqie5j56am7tach4ewtp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffqie5j56am7tach4ewtp.png" alt=" " width="800" height="590"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use one method to create the original schema. If you run the same &lt;code&gt;CREATE TABLE&lt;/code&gt; statements after the tables already exist, PostgreSQL returns an “already exists” error.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: View the Created Database Schema
&lt;/h2&gt;

&lt;p&gt;After either option succeeds, open Schema Manager and select the &lt;code&gt;clinic&lt;/code&gt; schema.&lt;/p&gt;

&lt;p&gt;You can now see the &lt;code&gt;patients&lt;/code&gt;, &lt;code&gt;appointments&lt;/code&gt;, &lt;code&gt;doctors&lt;/code&gt;, and &lt;code&gt;specializations&lt;/code&gt; tables on the PostgreSQL server. This is the implemented database schema: it is no longer only a model or a plan.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdsw3qhodtuislo5epu04.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdsw3qhodtuislo5epu04.png" alt=" " width="800" height="550"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This schema contains several constraints:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;NOT NULL&lt;/code&gt; requires a value.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;PRIMARY KEY&lt;/code&gt; makes each ID unique.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;REFERENCES&lt;/code&gt; creates foreign-key relationships.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;UNIQUE&lt;/code&gt; prevents duplicate specialization names.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;DEFAULT 'scheduled'&lt;/code&gt; gives new appointments an initial status.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;CHECK&lt;/code&gt; prevents unsupported status values.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, PostgreSQL will reject this appointment if patient 9999 does not exist:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;clinic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;appointments&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;patient_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;doctor_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;appointment_at&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;reason&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="mi"&gt;9999&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'2026-11-20 10:00'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'Annual check-up'&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;PostgreSQL returns an error like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ERROR:  insert or update on table "appointments" violates foreign key constraint "appointments_patient_id_fkey"
DETAIL:  Key (patient_id)=(9999) is not present in table "patients".
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the difference between drawing a relationship in a diagram and enforcing it in the database.&lt;/p&gt;

&lt;h2&gt;
  
  
  ER Diagram vs Database Schema: The Difference
&lt;/h2&gt;

&lt;p&gt;The conceptual, logical, and physical models are the steps between the first idea and the finished database.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;ER diagram&lt;/th&gt;
&lt;th&gt;Database schema&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Main job&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Plans what data the system needs and how it connects&lt;/td&gt;
&lt;td&gt;Stores the real database structure&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Includes&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Entities, attributes, and relationships&lt;/td&gt;
&lt;td&gt;Tables, columns, data types, keys, constraints, and indexes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;In this example&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The HyperClinic models before the schema is created&lt;/td&gt;
&lt;td&gt;The &lt;code&gt;clinic&lt;/code&gt; schema after the SQL is run or the model is materialized&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Where you see it&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;In the diagram designer&lt;/td&gt;
&lt;td&gt;In PostgreSQL and Schema Manager&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;An ER diagram helps the team decide what to build. The database schema is the structure PostgreSQL creates from that plan.&lt;/p&gt;

&lt;p&gt;The tool used for this demonstration is &lt;a href="https://visualeaf.com/download" rel="noopener noreferrer"&gt;VisuaLeaf&lt;/a&gt;. You can download it for free and follow the same steps: design the model, create the schema, and view the tables and relationships in one place.&lt;/p&gt;

</description>
      <category>sql</category>
      <category>database</category>
      <category>software</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>What changed in MongoDB 9.0, and how can it help in everyday database work? Practical examples in VisuaLeaf show the new behavior and compare results with MongoDB 8.2.5.</title>
      <dc:creator>VisuaLeaf</dc:creator>
      <pubDate>Wed, 14 Oct 2026 17:43:06 +0000</pubDate>
      <link>https://dev.to/visualeaf/what-changed-in-mongodb-90-and-how-can-it-help-in-everyday-database-work-practical-examples-in-40ih</link>
      <guid>https://dev.to/visualeaf/what-changed-in-mongodb-90-and-how-can-it-help-in-everyday-database-work-practical-examples-in-40ih</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/roxana_haidiner/whats-new-in-mongodb-90-query-settings-validation-and-resource-limits-h1k" class="crayons-story__hidden-navigation-link"&gt;What's New in MongoDB 9.0: Query Settings, Validation, and Resource Limits&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/roxana_haidiner" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2224346%2Ff71cca7a-b282-4793-a3ae-b04d89957d47.png" alt="roxana_haidiner profile" class="crayons-avatar__image" width="512" height="512"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/roxana_haidiner" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Roxana-Maria Haidiner
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Roxana-Maria Haidiner
                
                
              
              &lt;div id="story-author-preview-content-4851574" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/roxana_haidiner" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2224346%2Ff71cca7a-b282-4793-a3ae-b04d89957d47.png" class="crayons-avatar__image" alt="" width="512" height="512"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Roxana-Maria Haidiner&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/roxana_haidiner/whats-new-in-mongodb-90-query-settings-validation-and-resource-limits-h1k" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Oct 14&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/roxana_haidiner/whats-new-in-mongodb-90-query-settings-validation-and-resource-limits-h1k" id="article-link-4851574"&gt;
          What's New in MongoDB 9.0: Query Settings, Validation, and Resource Limits
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/mongodb"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;mongodb&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/nosql"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;nosql&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/database"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;database&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/softwaredevelopment"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;softwaredevelopment&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/roxana_haidiner/whats-new-in-mongodb-90-query-settings-validation-and-resource-limits-h1k" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/fire-f60e7a582391810302117f987b22a8ef04a2fe0df7e3258a5f49332df1cec71e.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/raised-hands-74b2099fd66a39f2d7eed9305ee0f4553df0eb7b4f11b01b6b1b499973048fe5.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;4&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/roxana_haidiner/whats-new-in-mongodb-90-query-settings-validation-and-resource-limits-h1k#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            10 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;


</description>
    </item>
    <item>
      <title>How to Open a SQLite Database: Query and Explore Your Data</title>
      <dc:creator>VisuaLeaf</dc:creator>
      <pubDate>Wed, 14 Oct 2026 17:36:15 +0000</pubDate>
      <link>https://dev.to/visualeaf/how-to-open-a-sqlite-database-query-and-explore-your-data-275d</link>
      <guid>https://dev.to/visualeaf/how-to-open-a-sqlite-database-query-and-explore-your-data-275d</guid>
      <description>&lt;p&gt;You have a SQLite file and want to see the information inside it. To open a SQLite database, select the file in software that can read SQLite, such as &lt;a href="https://visualeaf.com" rel="noopener noreferrer"&gt;VisuaLeaf&lt;/a&gt;. You can then browse the tables and use SQL to find the information you need.&lt;/p&gt;

&lt;p&gt;SQL is the language you use to tell a database what you want. A query is one of those requests. It might ask for ten inspection records, the name of a technician, or the number of checks that failed.&lt;/p&gt;

&lt;p&gt;This guide uses an example inspection database. You’ll open the file, browse its tables, join related records, read JSON values, export results to Excel, and create a chart. If you follow along with your own database, replace the example table and column names with yours.&lt;/p&gt;

&lt;h2&gt;
  
  
  First, understand what is inside the file
&lt;/h2&gt;

&lt;p&gt;SQLite stores data in a database file. You don't need to set up a separate database server to open it.&lt;/p&gt;

&lt;p&gt;Inside the file, the data is organised into *&lt;strong&gt;&lt;em&gt;tables&lt;/em&gt;&lt;/strong&gt;*. A table looks a little like a spreadsheet: it has rows and columns.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5u5x1phg182i35aajvbu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5u5x1phg182i35aajvbu.png" alt="VisuaLeaf Split View showing the SQLite inspections table structure beside a data grid with five rows." width="800" height="388"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;inspections&lt;/code&gt; table’s columns on the left and five inspection records on the right.&lt;/p&gt;

&lt;p&gt;The information is split across several tables:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;sites&lt;/code&gt; holds details about the places being inspected,
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;technicians&lt;/code&gt; holds details about the people doing the inspections,
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;inspection_items&lt;/code&gt; holds the results of individual checks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An inspection can therefore have one row describing the visit and several other rows describing its checklist items.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open your SQLite database in VisuaLeaf
&lt;/h2&gt;

&lt;p&gt;SQLite files often end in &lt;code&gt;.db&lt;/code&gt;, &lt;code&gt;.sqlite&lt;/code&gt;, or &lt;code&gt;.sqlite3&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://visualeaf.com/database/sqlite/" rel="noopener noreferrer"&gt;VisuaLeaf&lt;/a&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a connection and choose SQLite.&lt;/li&gt;
&lt;li&gt;Select your existing database file.&lt;/li&gt;
&lt;li&gt;Connect, then expand &lt;code&gt;main&lt;/code&gt; and *&lt;strong&gt;&lt;em&gt;Tables&lt;/em&gt;&lt;/strong&gt;* in the sidebar.&lt;/li&gt;
&lt;li&gt;Open a table to see its records.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You select a file instead of entering a server address, port, or database username. If your database is already connected, go straight to its tables.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;main&lt;/code&gt; is SQLite's name for the primary database opened by that connection. You don't need to create another database with that name.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fulczsn7mq6pfiorlzcha.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fulczsn7mq6pfiorlzcha.png" alt="VisuaLeaf SQLite connection form showing the database file path and a successful connection test." width="800" height="713"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Connecting to the local &lt;code&gt;field_inspections.sqlite&lt;/code&gt; database in VisuaLeaf.&lt;/p&gt;

&lt;p&gt;If you don’t have a SQLite database yet, click *&lt;strong&gt;&lt;em&gt;New DB&lt;/em&gt;&lt;/strong&gt;* in the connection form to create one. It starts empty, so you can add your own tables and data. The examples below use our existing inspection database.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read a few inspections with SQL
&lt;/h2&gt;

&lt;p&gt;Open &lt;code&gt;inspections&lt;/code&gt; in the data view to browse its rows. You can also choose exactly which columns to display using the SQL Editor:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;risk_score&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;inspections&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;
&lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read this query one line at a time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;SELECT id, status, risk_score&lt;/code&gt; chooses the three columns to show.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;FROM inspections&lt;/code&gt; tells SQLite which table to read.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ORDER BY id&lt;/code&gt; sorts the records by their identifier, from smallest to largest.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;LIMIT 10&lt;/code&gt; asks for at most ten rows.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This query reads data. It doesn't change the records.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd9iq6miyj0gif7fvleq6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd9iq6miyj0gif7fvleq6.png" alt="VisuaLeaf SQLite SQL Editor showing a SELECT query above ten inspection rows with id, status, and risk_score columns." width="800" height="616"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Reading ten inspection records, ordered by ID, with their statuses and risk scores.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;id&lt;/code&gt; column is the inspection's *&lt;strong&gt;&lt;em&gt;primary key&lt;/em&gt;&lt;/strong&gt;*: the value that identifies that row. Keep it in your results so you can find the same inspection again.&lt;/p&gt;

&lt;p&gt;Look at the values before writing a filter. A column called &lt;code&gt;status&lt;/code&gt; doesn't tell you which words the application stores there. Check the records rather than guessing whether a status is called &lt;code&gt;complete&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;, or something else.&lt;/p&gt;

&lt;h2&gt;
  
  
  What do the column types mean?
&lt;/h2&gt;

&lt;p&gt;Open Table Management for &lt;code&gt;sites&lt;/code&gt;. It shows how each column is defined.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F732jo46emivb5oiednsj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F732jo46emivb5oiednsj.png" alt="VisuaLeaf Table Management showing the SQLite sites table with INTEGER, TEXT, and REAL columns, primary key id, and a foreign key linking client_id to clients.id." width="800" height="662"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;sites&lt;/code&gt; table in VisuaLeaf, showing each column’s data type, whether it allows missing values (&lt;code&gt;NULL&lt;/code&gt;), and its default value.&lt;/p&gt;

&lt;p&gt;The screenshot includes three common SQLite types:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Data type&lt;/th&gt;
&lt;th&gt;What it stores&lt;/th&gt;
&lt;th&gt;Example columns&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;INTEGER&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Whole numbers, such as 1, 2, or 3&lt;/td&gt;
&lt;td&gt;&lt;code&gt;id&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;TEXT&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Text, such as names and cities&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;name&lt;/code&gt;, &lt;code&gt;city&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;REAL&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Numbers with decimals, such as 44.43&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;latitude&lt;/code&gt;, &lt;code&gt;longitude&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code&gt;active&lt;/code&gt; column has a *&lt;strong&gt;&lt;em&gt;default&lt;/em&gt;&lt;/strong&gt;* of &lt;code&gt;1&lt;/code&gt;. That means SQLite supplies &lt;code&gt;1&lt;/code&gt; when a new row leaves this column out of the insert.&lt;/p&gt;

&lt;p&gt;A default alone also allows someone to enter another value. To restrict &lt;code&gt;active&lt;/code&gt; to &lt;code&gt;0&lt;/code&gt; and &lt;code&gt;1&lt;/code&gt;, the table would need a *&lt;strong&gt;&lt;em&gt;constraint&lt;/em&gt;&lt;/strong&gt;*, which is a rule that data must follow. For example, &lt;code&gt;CHECK (active IN (0, 1))&lt;/code&gt; checks that the value is one of those two numbers. A separate &lt;code&gt;NOT NULL&lt;/code&gt; rule rejects a missing value.&lt;/p&gt;

&lt;p&gt;Click *&lt;strong&gt;&lt;em&gt;Show DDL&lt;/em&gt;&lt;/strong&gt;* to see the SQL that defines the &lt;code&gt;sites&lt;/code&gt; table. DDL means &lt;strong&gt;Data Definition Language&lt;/strong&gt;. This definition shows the column types and rules, such as primary keys, foreign keys, &lt;code&gt;NOT NULL&lt;/code&gt;, and default values.&lt;/p&gt;

&lt;p&gt;You can also inspect the table's *&lt;strong&gt;&lt;em&gt;indexes&lt;/em&gt;&lt;/strong&gt;*. An index is a lookup structure, a little like the index at the back of a book. It can help SQLite find certain values without reading every row. Having an index on a column does not automatically connect it to another table.&lt;/p&gt;

&lt;p&gt;SQLite is flexible with data types. In a regular table, a column marked &lt;code&gt;INTEGER&lt;/code&gt; may still accept text. The declared type tells you what the column is intended to store, but it does not always enforce that type.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understand foreign keys and join related tables
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;inspections&lt;/code&gt; table stores &lt;code&gt;site_id&lt;/code&gt; and &lt;code&gt;technician_id&lt;/code&gt; to identify where each inspection took place and who performed it. The site and technician details live in their own tables.&lt;/p&gt;

&lt;p&gt;A *&lt;strong&gt;&lt;em&gt;primary key&lt;/em&gt;&lt;/strong&gt;* identifies a specific row. For example, &lt;code&gt;sites.id&lt;/code&gt; identifies each site.&lt;/p&gt;

&lt;p&gt;A *&lt;strong&gt;&lt;em&gt;foreign key&lt;/em&gt;&lt;/strong&gt;* is a rule that connects a value in one table to a matching key in another. Here, &lt;code&gt;inspections.site_id&lt;/code&gt; refers to &lt;code&gt;sites.id&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If an inspection has &lt;code&gt;site_id = 7&lt;/code&gt;, it belongs to the site whose &lt;code&gt;id&lt;/code&gt; is &lt;code&gt;7&lt;/code&gt;. You can look up that site’s name and city in &lt;code&gt;sites&lt;/code&gt;, without copying those details into every inspection row. Several inspections can have the same &lt;code&gt;site_id&lt;/code&gt; because you can inspect the same site more than once.&lt;/p&gt;

&lt;p&gt;The same idea applies to &lt;code&gt;technician_id&lt;/code&gt;: it refers to the technician’s &lt;code&gt;id&lt;/code&gt; in &lt;code&gt;technicians&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://visualeaf.com/features/visual-schema/" rel="noopener noreferrer"&gt;ER diagram&lt;/a&gt; shows these connections as lines between the tables.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn61o13tu4w7s8xiqfk27.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn61o13tu4w7s8xiqfk27.png" alt="VisuaLeaf ER diagram linking inspections.site_id to sites.id and inspections.technician_id to technicians.id, with foreign key settings and an open delete-action menu." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Foreign keys connect each inspection to its site and technician. The diagram shows these relationships and the available rules for handling deletions.&lt;/p&gt;

&lt;p&gt;A *&lt;strong&gt;&lt;em&gt;join&lt;/em&gt;&lt;/strong&gt;* uses those matching values to bring information from different tables into one result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt;
    &lt;span class="n"&gt;inspections&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;sites&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;site&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;technicians&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;full_name&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;technician&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;inspections&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;risk_score&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;inspections&lt;/span&gt;
&lt;span class="k"&gt;LEFT&lt;/span&gt; &lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;sites&lt;/span&gt;
    &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;inspections&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;site_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sites&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;
&lt;span class="k"&gt;LEFT&lt;/span&gt; &lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;technicians&lt;/span&gt;
    &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;inspections&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;technician_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;technicians&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;inspections&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;
&lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A name such as &lt;code&gt;sites.name&lt;/code&gt; means “the &lt;code&gt;name&lt;/code&gt; column in the &lt;code&gt;sites&lt;/code&gt; table.” Writing the table name first makes it clear which table we mean.&lt;/p&gt;

&lt;p&gt;The query starts with inspections, matches each one to its site, and then matches it to its technician. The result puts the inspection ID, both names, and the risk score together.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;LEFT JOIN&lt;/code&gt; keeps the inspection in the result even if a matching site or technician is missing. SQLite shows &lt;code&gt;NULL&lt;/code&gt; for the missing information. &lt;code&gt;NULL&lt;/code&gt; means no value. A normal inner &lt;code&gt;JOIN&lt;/code&gt; would leave out inspections without a match.&lt;/p&gt;

&lt;p&gt;A null name alone doesn't prove a record is missing: the related row could exist but have no name. Check the matching IDs before deciding what is wrong.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fae12h6mfildizaxw6qpm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fae12h6mfildizaxw6qpm.png" alt="VisuaLeaf displaying a LEFT JOIN query across inspections, sites, and technicians, with inspection IDs, site names, technician names, and risk scores in the results." width="800" height="635"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Joining three SQLite tables to show each inspection’s site, technician, and risk score.&lt;/p&gt;

&lt;p&gt;You can also create this query visually with VisuaLeaf’s &lt;a href="https://visualeaf.com/features/visual-query-builder/" rel="noopener noreferrer"&gt;Query Builder&lt;/a&gt;, without writing SQL. Select the tables, connect their matching columns, and choose which fields to include in the result.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftd11cxynttu8w01bdnlf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftd11cxynttu8w01bdnlf.png" alt="VisuaLeaf Query Builder showing LEFT JOINs from inspections to sites and technicians, a risk_score greater than 2 filter, ascending ID sorting, and query results below." width="800" height="598"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Joining tables visually in VisuaLeaf’s Query Builder, filtering for risk scores above 2, and sorting inspections by ID.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is SQLite checking the relationships?
&lt;/h3&gt;

&lt;p&gt;SQLite can have foreign keys defined while their enforcement is turned off. To check the current connection’s setting, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="no"&gt;PRAGMA&lt;/span&gt; &lt;span class="n"&gt;foreign_keys&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A result of &lt;code&gt;1&lt;/code&gt; means checking is on; &lt;code&gt;0&lt;/code&gt; means it is off. To enable it, run this before making changes, outside an active transaction:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="no"&gt;PRAGMA&lt;/span&gt; &lt;span class="n"&gt;foreign_keys&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This setting applies to the current connection. It helps prevent new invalid references, but it does not fix existing ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  Query JSON data in SQLite
&lt;/h2&gt;

&lt;p&gt;One database column can hold several related details as JSON. In our &lt;code&gt;inspections&lt;/code&gt; table, &lt;code&gt;device_info&lt;/code&gt; stores the device platform, app version, battery percentage, and whether the inspection was recorded offline.&lt;/p&gt;

&lt;p&gt;Start by viewing the original values:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;device_info&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;inspections&lt;/span&gt;
&lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can see the result on the left of the screenshot. Each &lt;code&gt;device_info&lt;/code&gt; cell contains named values, such as &lt;code&gt;"platform":"android"&lt;/code&gt;. Here, &lt;code&gt;platform&lt;/code&gt; is the name and &lt;code&gt;android&lt;/code&gt; is its value.&lt;/p&gt;

&lt;p&gt;To display the platform separately, use &lt;code&gt;json_extract()&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt;
    &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;inspection_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;site&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nf"&gt;json_extract&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;device_info&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'$.platform'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;platform&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nf"&gt;json_extract&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;device_info&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'$.app_version'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;app_version&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nf"&gt;json_extract&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;device_info&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'$.battery_percent'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;battery&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;risk_score&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;inspections&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;
&lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;sites&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;site_id&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="nf"&gt;json_extract&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;device_info&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'$.offline'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;risk_score&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;
&lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read that expression in three parts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;device_info&lt;/code&gt; is the column containing the JSON.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;'$.platform'&lt;/code&gt; tells SQLite to find the value named &lt;code&gt;platform&lt;/code&gt; inside it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;AS platform&lt;/code&gt; names the result column.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This creates a column in your query results. It does not add a new column to the database or change the stored JSON.&lt;/p&gt;

&lt;p&gt;The longer query on the right extracts the platform, app version, and battery percentage. It also adds the site name using a join.&lt;/p&gt;

&lt;p&gt;Its &lt;code&gt;WHERE&lt;/code&gt; condition keeps inspections where &lt;code&gt;offline&lt;/code&gt; is &lt;code&gt;true&lt;/code&gt;. SQLite returns that JSON value as &lt;code&gt;1&lt;/code&gt;. Finally, &lt;code&gt;ORDER BY ... DESC&lt;/code&gt; puts the highest risk scores first, and &lt;code&gt;LIMIT 12&lt;/code&gt; returns at most twelve rows.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F16ts0rmr56l71608cbde.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F16ts0rmr56l71608cbde.png" alt="VisuaLeaf split view showing device_info JSON beside a SQLite query extracting platform, app version, and battery values for offline inspections." width="800" height="572"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Original device JSON on the left; extracted details for offline inspections on the right.&lt;/p&gt;

&lt;h2&gt;
  
  
  Export SQLite query results to Excel
&lt;/h2&gt;

&lt;p&gt;Once your query returns the information you need, you &lt;a href="https://visualeaf.com/blog/automate-mongodb-exports-imports-sync-jobs/" rel="noopener noreferrer"&gt;can export it to an Excel&lt;/a&gt; workbook. This lets you share the results with someone who doesn’t use a database tool.&lt;/p&gt;

&lt;p&gt;Open the export form for your query, then:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Set *&lt;strong&gt;&lt;em&gt;Source Type&lt;/em&gt;&lt;/strong&gt;* to *&lt;strong&gt;&lt;em&gt;Query&lt;/em&gt;&lt;/strong&gt;*.&lt;/li&gt;
&lt;li&gt;Select your SQLite connection and the &lt;code&gt;main&lt;/code&gt; database.&lt;/li&gt;
&lt;li&gt;Check the SQL in the *&lt;strong&gt;&lt;em&gt;Query&lt;/em&gt;&lt;/strong&gt;* field.&lt;/li&gt;
&lt;li&gt;Set *&lt;strong&gt;&lt;em&gt;Target Type&lt;/em&gt;&lt;/strong&gt;* to *&lt;strong&gt;&lt;em&gt;Excel Workbook&lt;/em&gt;&lt;/strong&gt;*.&lt;/li&gt;
&lt;li&gt;Choose a file location and name, such as &lt;code&gt;inspections.xlsx&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Click *&lt;strong&gt;&lt;em&gt;Export Now&lt;/em&gt;&lt;/strong&gt;*.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For our JSON query, the exported columns contain the inspection ID, site, platform, app version, battery percentage, and risk score.&lt;/p&gt;

&lt;p&gt;The export follows your query’s filters and limits. If you keep &lt;code&gt;LIMIT 12&lt;/code&gt;, it exports at most twelve rows. Remove that limit if you want all matching inspections.&lt;/p&gt;

&lt;p&gt;The Excel file contains a copy of the query results. Editing it does not update your SQLite database.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6jkawm43x3ryw8l7hgcl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6jkawm43x3ryw8l7hgcl.png" alt="VisuaLeaf export form with a SQLite query as the source and inspections.xlsx as the Excel workbook destination." width="800" height="572"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Exporting SQLite query results to an Excel workbook.&lt;/p&gt;

&lt;h2&gt;
  
  
  Count and chart failed checks by category
&lt;/h2&gt;

&lt;p&gt;Use &lt;code&gt;GROUP BY&lt;/code&gt; to group failed checklist items by category, then &lt;code&gt;COUNT(*)&lt;/code&gt; to count them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt;
    &lt;span class="n"&gt;issue_category&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) AS failed_checks
FROM inspection_items
WHERE result = 'fail'
GROUP BY issue_category
ORDER BY failed_checks DESC
LIMIT 8;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The query returns up to eight categories with the most failed checks.&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://visualeaf.com/features/chart-builder/" rel="noopener noreferrer"&gt;VisuaLeaf’s Chart Builder&lt;/a&gt;, choose *&lt;strong&gt;&lt;em&gt;Pie&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;, set *&lt;/em&gt;&lt;strong&gt;Category&lt;/strong&gt;** to &lt;code&gt;issue_category&lt;/code&gt;, and *&lt;strong&gt;&lt;em&gt;Value&lt;/em&gt;&lt;/strong&gt;* to &lt;code&gt;failed_checks&lt;/code&gt;. Each slice shows that category’s share of the failed checks returned by the query.&lt;/p&gt;

&lt;p&gt;These totals count checklist items, not inspections. One inspection can contain several failed items. Remove &lt;code&gt;LIMIT 8&lt;/code&gt; if you want to include every category with failed checks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7est0hg824wgwa626rmh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7est0hg824wgwa626rmh.png" alt="VisuaLeaf pie chart of failed checks across eight categories, with documentation at 22.62% and electrical at 20.44%, the two largest shares." width="800" height="574"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each slice shows a category’s share of the failed checks included in the chart.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Start by opening your SQLite file and checking its tables and columns. Then use a small &lt;code&gt;SELECT&lt;/code&gt; query to read a few records before adding filters, joins, or calculations.&lt;/p&gt;

&lt;p&gt;Once the results contain what you need, you can export them to Excel or turn them into a chart. Check your filters and row limits first—they determine which data appears in the final result.&lt;/p&gt;

</description>
      <category>sql</category>
      <category>sqlite</category>
      <category>database</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>VisuaLeaf</dc:creator>
      <pubDate>Fri, 18 Sep 2026 08:52:14 +0000</pubDate>
      <link>https://dev.to/visualeaf/-449c</link>
      <guid>https://dev.to/visualeaf/-449c</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/roxana_haidiner/mongodb-sharding-manage-a-sharded-cluster-visually-1nkc" class="crayons-story__hidden-navigation-link"&gt;MongoDB Sharding: Manage a Sharded Cluster Visually&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/roxana_haidiner" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2224346%2Ff71cca7a-b282-4793-a3ae-b04d89957d47.png" alt="roxana_haidiner profile" class="crayons-avatar__image" width="512" height="512"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/roxana_haidiner" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Roxana-Maria Haidiner
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Roxana-Maria Haidiner
                
                
              
              &lt;div id="story-author-preview-content-4681989" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/roxana_haidiner" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2224346%2Ff71cca7a-b282-4793-a3ae-b04d89957d47.png" class="crayons-avatar__image" alt="" width="512" height="512"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Roxana-Maria Haidiner&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/roxana_haidiner/mongodb-sharding-manage-a-sharded-cluster-visually-1nkc" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Sep 18&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/roxana_haidiner/mongodb-sharding-manage-a-sharded-cluster-visually-1nkc" id="article-link-4681989"&gt;
          MongoDB Sharding: Manage a Sharded Cluster Visually
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/mongodb"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;mongodb&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/database"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;database&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/software"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;software&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/softwaredevelopment"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;softwaredevelopment&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/roxana_haidiner/mongodb-sharding-manage-a-sharded-cluster-visually-1nkc" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/fire-f60e7a582391810302117f987b22a8ef04a2fe0df7e3258a5f49332df1cec71e.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/raised-hands-74b2099fd66a39f2d7eed9305ee0f4553df0eb7b4f11b01b6b1b499973048fe5.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;5&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/roxana_haidiner/mongodb-sharding-manage-a-sharded-cluster-visually-1nkc#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            5 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;


</description>
    </item>
  </channel>
</rss>
