Dedunu

  • Technology
  • Travel
  • Ubuntu 20.04

    I bought a laptop recently. HP 14 A4 8GB 256GB SSD. It came with Windows 10 and was bundled with so many applications, I didn’t want to use. I tried to install it via PXE. But I couldn’t get that working. Finally, I decided to buy a USB drive and install Ubuntu.

    nn

    nn

    I have to start with the installation. Ubuntu Desktop version has a minimal option. I would say that it is a brilliant option. It doesn’t bundle office or anything else I don’t want to use. If I want I can download them always. Ubuntu 20.04 has a lovely OEM splash screen. I usually turn off Plymouth, but I decided to leave it on just to see the beautiful OEM logo.

    nn

    nn

    I installed Numix icons which is part of the main repository which is great again. Widely used applications are included in the main repository. I hate adding new repositories because it slows-down apt update. I heard in a podcast that even Canonical is annoyed by PPAs.

    nn

    I like the dark theme. So I didn’t install the Numix dark theme. But you might need to change the color scheme in the text editor if you switch to dark mode.

    nn

    nn

    Overall I love Ubuntu! (Even though I use a Mac at work) Things have gotten much better and it is quite fun to use. Try the new version and spread the word!

    nn

    Tags

    nn

      n

    • linux
    • n

    • ubuntu
    • n

    • laptop
    • n

    n

  • Debug bash scripts

    One day, I had to go through a large bash script and create a Debian package for our system. It could have been a strenuous job if I had to understand it. I was lazy to read it. So I found an easy way to get all the steps. I downloaded this on a container and ran with bash -x.

    nn

    # wget https://download.vividcortex.com/installn--2020-05-20 16:24:06--  https://download.vividcortex.com/installnResolving download.vividcortex.com (download.vividcortex.com)... 13.33.243.45, 13.33.243.100, 13.33.243.16, ...nConnecting to download.vividcortex.com (download.vividcortex.com)|13.33.243.45|:443... connected.nHTTP request sent, awaiting response... 200 OKnLength: 45048 (44K) [application/octet-stream]nSaving to: 'install'nninstall                  100%[==================================>]  43.99K  --.-KB/s    in 0.06s   nn2020-05-20 16:24:07 (732 KB/s) - 'install' saved [45048/45048]nn# lsninstalln# bash -x install n+ VERSION=1.8.159n+ baseuri=https://download.vividcortex.comn+ set -un+ POSIXLY_CORRECT=1n+ export POSIXLY_CORRECTn+ TERM=dumbn+ export TERMn+ unalias -an+ defaultconfdir=/etc/vividcortexn+ confdir=/etc/vividcortexn+ logdir=/var/log/vividcortexn+ runvdir=/var/run/vividcortexn+ superpid=/var/run/vc-agent-007.pidn+ tempdir=n+ socks5=n+ SKIPCERTS=n+ LOADCERTS=n+ EXISTS='command -v'n+ command -v lsn+ command -v lsn+ test https://download.vividcortex.com = unknownn++ id -un+ '[' 0 -ne 0 ']'n+ test -d /usrn+ exitcode=4n+ '[' 4 -eq 4 ']'n++ getopt -o hslkbup:t:v:i:a:c:d:g: -l help,autostart,no-autostart,start-now,load-certs,skip-certs,batch,static,uninstall,delete,debug,off-host,update-init,static-ip,dyn-sample-text,no-proxy,proxy:,token:,version:,init:,sample:,api-uri:,cdn-uri:,bin-dir:,cfg-dir:,aggr-uri:,hostname:,host-tags: -n install --n+ GETARGS=' --'n+ test 0 -eq 0n+ eval set -- ' --'n++ set -- --n+ AUTOSTART=n...n

    nn

    You can use this if you want to debug or understand a shell script. But of course, you should be able to run it to test.

    nn

    Tags

    nn

      n

    • linux
    • n

    • bash
    • n

    • debug
    • n

    n

  • PostgreSQL 12 – pset format option

    Postgres 12 has introduced a new format in psql CLI. There are 9 types available. They are listed below.

    nn

      n

    • aligned
    • n

    • asciidoc
    • n

    • csv
    • n

    • html
    • n

    • latex
    • n

    • latex-longtable
    • n

    • troff-ms
    • n

    • unaligned
    • n

    • wrapped
    • n

    nn

    For more information look -> https://www.postgresql.org/docs/12/app-psql.html

    nn

    Let’s check each format. An example of aligned is shown here. This is not good with a wide table/output. It can overflow. Less readable. This is the default format.

    nn

    blipsnchitz=# \pset format alignednOutput format is aligned.nblipsnchitz=# nblipsnchitz=# SELECT name, setting, unit, category, short_desc FROM pg_settings LIMIT 5;n          name           |  setting   | unit |              category               |                              short_desc                              n-------------------------+------------+------+-------------------------------------+----------------------------------------------------------------------n allow_system_table_mods | off        |      | Developer Options                   | Allows modifications of the structure of system tables.n application_name        | psql       |      | Reporting and Logging / What to Log | Sets the application name to be reported in statistics and logs.n archive_cleanup_command |            |      | Write-Ahead Log / Archive Recovery  | Sets the shell command that will be executed at every restart point.n archive_command         | (disabled) |      | Write-Ahead Log / Archiving         | Sets the shell command that will be called to archive a WAL file.n archive_mode            | off        |      | Write-Ahead Log / Archiving         | Allows archiving of WAL files using archive_command.n(5 rows)nnblipsnchitz=# n

    nn

    unaligned doesn’t use tabs. Hard to read.

    nn

    blipsnchitz=# \pset format unalignednOutput format is unaligned.nblipsnchitz=# nblipsnchitz=# SELECT name, setting, unit, category, short_desc FROM pg_settings LIMIT 5;nname|setting|unit|category|short_descnallow_system_table_mods|off||Developer Options|Allows modifications of the structure of system tables.napplication_name|psql||Reporting and Logging / What to Log|Sets the application name to be reported in statistics and logs.narchive_cleanup_command|||Write-Ahead Log / Archive Recovery|Sets the shell command that will be executed at every restart point.narchive_command|(disabled)||Write-Ahead Log / Archiving|Sets the shell command that will be called to archive a WAL file.narchive_mode|off||Write-Ahead Log / Archiving|Allows archiving of WAL files using archive_command.n(5 rows)nblipsnchitz=# n

    nn

    wrapped is useful if your table fit into your terminal width. Otherwise, it does poorly.

    nn

    blipsnchitz=# \pset format wrappednOutput format is wrapped.nblipsnchitz=# nblipsnchitz=# SELECT name, setting, unit, category, short_desc FROM pg_settings LIMIT 5;n         name         | setting | unit |            category            |                  short_desc                   n----------------------+---------+------+--------------------------------+-----------------------------------------------n allow_system_table_m.| off     |      | Developer Options              | Allows modifications of the structure of syst.n.ods                  |         |      |                                |.em tables.n application_name     | psql    |      | Reporting and Logging / What t.| Sets the application name to be reported in s.n                      |         |      |.o Log                          |.tatistics and logs.n archive_cleanup_comm.|         |      | Write-Ahead Log / Archive Reco.| Sets the shell command that will be executed .n.and                  |         |      |.very                           |.at every restart point.n archive_command      | (disabl.|      | Write-Ahead Log / Archiving    | Sets the shell command that will be called to.n                      |.ed)     |      |                                |. archive a WAL file.n archive_mode         | off     |      | Write-Ahead Log / Archiving    | Allows archiving of WAL files using archive_c.n                      |         |      |                                |.ommand.n(5 rows)nnblipsnchitz=# n

    nn

    This is the flashy new feature. I love it! It can be used to export too! Follows the RFC 4180.

    nn

    blipsnchitz=# \pset format csvnOutput format is csv.nblipsnchitz=# nblipsnchitz=# SELECT name, setting, unit, category, short_desc FROM pg_settings LIMIT 5;nname,setting,unit,category,short_descnallow_system_table_mods,off,,Developer Options,Allows modifications of the structure of system tables.napplication_name,psql,,Reporting and Logging / What to Log,Sets the application name to be reported in statistics and logs.narchive_cleanup_command,,,Write-Ahead Log / Archive Recovery,Sets the shell command that will be executed at every restart point.narchive_command,(disabled),,Write-Ahead Log / Archiving,Sets the shell command that will be called to archive a WAL file.narchive_mode,off,,Write-Ahead Log / Archiving,Allows archiving of WAL files using archive_command.nblipsnchitz=# n

    nn

    psql supports few markup languages. An example of html is shown here.

    nn

    blipsnchitz=# \pset format htmlnOutput format is html.nblipsnchitz=# nblipsnchitz=# SELECT name, setting, unit, category, short_desc FROM pg_settings LIMIT 5;n<table border="1">n  <tr>n    <th align="center">name</th>n    <th align="center">setting</th>n    <th align="center">unit</th>n    <th align="center">category</th>n    <th align="center">short_desc</th>n  </tr>n  <tr valign="top">n    <td align="left">allow_system_table_mods</td>n    <td align="left">off</td>n    <td align="left">&nbsp; </td>n    <td align="left">Developer Options</td>n    <td align="left">Allows modifications of the structure of system tables.</td>n  </tr>n  <tr valign="top">n    <td align="left">application_name</td>n    <td align="left">psql</td>n    <td align="left">&nbsp; </td>n    <td align="left">Reporting and Logging / What to Log</td>n    <td align="left">Sets the application name to be reported in statistics and logs.</td>n  </tr>n  <tr valign="top">n    <td align="left">archive_cleanup_command</td>n    <td align="left">&nbsp; </td>n    <td align="left">&nbsp; </td>n    <td align="left">Write-Ahead Log / Archive Recovery</td>n    <td align="left">Sets the shell command that will be executed at every restart point.</td>n  </tr>n  <tr valign="top">n    <td align="left">archive_command</td>n    <td align="left">(disabled)</td>n    <td align="left">&nbsp; </td>n    <td align="left">Write-Ahead Log / Archiving</td>n    <td align="left">Sets the shell command that will be called to archive a WAL file.</td>n  </tr>n  <tr valign="top">n    <td align="left">archive_mode</td>n    <td align="left">off</td>n    <td align="left">&nbsp; </td>n    <td align="left">Write-Ahead Log / Archiving</td>n    <td align="left">Allows archiving of WAL files using archive_command.</td>n  </tr>n</table>n<p>(5 rows)<br />n</p>nblipsnchitz=# n

    nn

    asciidoc is shown here.

    nn

    blipsnchitz=# \pset format asciidocnOutput format is asciidoc.nblipsnchitz=# nblipsnchitz=# SELECT name, setting, unit, category, short_desc FROM pg_settings LIMIT 5;nn[options="header",cols="<l,<l,<l,<l,<l",frame="none"]n|====n^l|name ^l|setting ^l|unit ^l|category ^l|short_descn|allow_system_table_mods |off |  |Developer Options |Allows modifications of the structure of system tables.n|application_name |psql |  |Reporting and Logging / What to Log |Sets the application name to be reported in statistics and logs.n|archive_cleanup_command |  |  |Write-Ahead Log / Archive Recovery |Sets the shell command that will be executed at every restart point.n|archive_command |(disabled) |  |Write-Ahead Log / Archiving |Sets the shell command that will be called to archive a WAL file.n|archive_mode |off |  |Write-Ahead Log / Archiving |Allows archiving of WAL files using archive_command.n|====nn....n(5 rows)n....nblipsnchitz=# n

    nn

    latex looks like this.

    nn

    blipsnchitz=# \pset format latexnOutput format is latex.nblipsnchitz=# nblipsnchitz=# SELECT name, setting, unit, category, short_desc FROM pg_settings LIMIT 5;n\begin{tabular}{l | l | l | l | l}n\textit{name} & \textit{setting} & \textit{unit} & \textit{category} & \textit{short\_desc} \\n\hlinenallow\_system\_table\_mods & off &  & Developer Options & Allows modifications of the structure of system tables. \\napplication\_name & psql &  & Reporting and Logging / What to Log & Sets the application name to be reported in statistics and logs. \\narchive\_cleanup\_command &  &  & Write-Ahead Log / Archive Recovery & Sets the shell command that will be executed at every restart point. \\narchive\_command & (disabled) &  & Write-Ahead Log / Archiving & Sets the shell command that will be called to archive a WAL file. \\narchive\_mode & off &  & Write-Ahead Log / Archiving & Allows archiving of WAL files using archive\_command. \\n\end{tabular}nn\noindent (5 rows) \\nnblipsnchitz=# n

    nn

    latex-longtable uses different packages.

    nn

    blipsnchitz=# \pset format latex-longtablenOutput format is latex-longtable.nblipsnchitz=# nblipsnchitz=# SELECT name, setting, unit, category, short_desc FROM pg_settings LIMIT 5;n\begin{longtable}{l | l | l | l | l}n\small\textbf{\textit{name}} & \small\textbf{\textit{setting}} & \small\textbf{\textit{unit}} & \small\textbf{\textit{category}} & \small\textbf{\textit{short\_desc}} \\n\midrulen\endfirstheadn\small\textbf{\textit{name}} & \small\textbf{\textit{setting}} & \small\textbf{\textit{unit}} & \small\textbf{\textit{category}} & \small\textbf{\textit{short\_desc}} \\n\midrulen\endheadn\raggedright{allow\_system\_table\_mods}n&n\raggedright{off}n&n\raggedright{}n&n\raggedright{Developer Options}n&n\raggedright{Allows modifications of the structure of system tables.} \tabularnewlinen\raggedright{application\_name}n&n\raggedright{psql}n&n\raggedright{}n&n\raggedright{Reporting and Logging / What to Log}n&n\raggedright{Sets the application name to be reported in statistics and logs.} \tabularnewlinen\raggedright{archive\_cleanup\_command}n&n\raggedright{}n&n\raggedright{}n&n\raggedright{Write-Ahead Log / Archive Recovery}n&n\raggedright{Sets the shell command that will be executed at every restart point.} \tabularnewlinen\raggedright{archive\_command}n&n\raggedright{(disabled)}n&n\raggedright{}n&n\raggedright{Write-Ahead Log / Archiving}n&n\raggedright{Sets the shell command that will be called to archive a WAL file.} \tabularnewlinen\raggedright{archive\_mode}n&n\raggedright{off}n&n\raggedright{}n&n\raggedright{Write-Ahead Log / Archiving}n&n\raggedright{Allows archiving of WAL files using archive\_command.} \tabularnewlinen\end{longtable}nblipsnchitz=# n

    nn

    troff-ms is the format used in man pages.

    nn

    blipsnchitz=# \pset format troff-msnOutput format is troff-ms.nblipsnchitz=# nblipsnchitz=# SELECT name, setting, unit, category, short_desc FROM pg_settings LIMIT 5;n.LPn.TSncenter;nl | l | l | l | l.n\fIname\fP	\fIsetting\fP	\fIunit\fP	\fIcategory\fP	\fIshort_desc\fPn_nallow_system_table_mods	off		Developer Options	Allows modifications of the structure of system tables.napplication_name	psql		Reporting and Logging / What to Log	Sets the application name to be reported in statistics and logs.narchive_cleanup_command			Write-Ahead Log / Archive Recovery	Sets the shell command that will be executed at every restart point.narchive_command	(disabled)		Write-Ahead Log / Archiving	Sets the shell command that will be called to archive a WAL file.narchive_mode	off		Write-Ahead Log / Archiving	Allows archiving of WAL files using archive_command.n.TEn.DS Ln(5 rows)n.DEnblipsnchitz=# n

    nn

    Tags

    n

      n

    • postgres
    • n

    • postgresql
    • n

    • psql
    • n

    • pset
    • n

    n

  • Are we writing off free-will with code?

    Are we developing so-called solutions to diminish free-will, relationships and society as we know it?

    nn

    First of all, free-will is itself questionable that if it exists. Our choices depend on the influences that we have grown up, environment and many other uncountable factors. But it is naturally a gradual process of shaping up a human and building up an identity. [1]

    nn

    All the data-driven companies are investing millions and billions of dollars to improved tricks to keep users hooked on their platforms. Google, Facebook, Twitter and Netflix are few of the biggest offenders. They are consciously violating ethics. [2][3]

    nn

    Today, we see entities influencing on politics using these platforms. Tech companies are affecting the free-will. Traditional marketing failed to achieve the current level of personalized target campaigns. We are designing and improving algorithms which eventually take away freedom from us. We will end up being digital slaves. Many have part of their identity embedded in social media. Advancements of the data science are not leading us to the utopia unless we keep using them for good. [4][5]

    nn

    Relationships and society are also falling apart. Eco-chambers are not educating or improving anyone’s perspective. Even though we are connected, social networks are making friendships competitive instead of healthy. Tech companies are pumping anxiety to their users.

    nn

    We will be distracted by frivolous platforms while the whole world burns down to ashes.[6]

    nn

    References

    nn

    [1] – https://www.bbc.com/reel/video/p086k2xk/the-strange-idea-that-we-are-not-in-control-of-our-minds

    nn

    [2] – https://www.youtube.com/watch?v=MakEIlvlyfE

    nn

    [3] – https://www.youtube.com/watch?v=leX541Dr2rU

    nn

    [4] – https://www.wired.com/story/russian-facebook-ads-targeted-us-voters-before-2016-election/

    nn

    [5] – https://en.wikipedia.org/wiki/The_Great_Hack

    nn

    [6] – https://en.wikipedia.org/wiki/The_Old_Man_and_the_Seat

    nn

    Tags

    n

      n

    • ethics
    • n

    • social media
    • n

    • data science
    • n

    • privacy
    • n

    n

  • Migrating to Github Pages

    My blog has been living on self-hosted WordPress, wordpress.com and blogger.com. But I have migrated it several times at the cost of losing posts and even domain names. But I have been holding dedunu.info since 2011.

    nn

    Recently Blogger is testing a new editor which doesn’t support HTML editing. I started to worry about that. I already had the personal site running on Github Pages. Moving to Github sounds sensible. Github Pages offers HTTPS support for custom domains, just like the Blogger did.

    nn

    If you want to do a blog on Github pages, Jekyll is the ultimate answer. Jekyll has out-of-the-box support for coding related blog posts. Using Markdown is cleaner than using Blogger editor.

    nn

    Migration was smooth. I could import all the blog posts with one command with blogger URLs.

    nn

    $ ruby -r rubygems -e 'require "jekyll-import";        n  JekyllImport::Importers::Blogger.run({n   "source"                => "/home/dedunu/blog-04-21-2020.xml",n   "no-blogger-info"       => false, n   "replace-internal-link" => false, n  })'n

    nn

    Sidey theme was my choice. A minimal theme for Jekyll with ultra-fast page loading.

    nn

    The only change, I had to do was enable pagination. Find the Github repository here.

    nn

    Tags

    nn

      n

    • blog
    • n

    • git
    • n

    • github
    • n

    • blogger
    • n

    n

  • Using pygmentize on Ubuntu view code files

    On the terminal, viewing code with colour might improve productivity. You can use pygmentize to view code in colour. Install pygmentize using below commands.

    nn

    $ sudo apt install python3-pipn$ pip3 install Pygmentsn

    nn

    You can use view code using:

    nn

    $ pygmentize -g /etc/profile.d/gawk.shn

    nn

    If you add an alias like below you will be able to use pygmentize as a short command to your .bashrc or .zshrc.

    nn

    alias ccat='pygmentize -g 'n

    nn

    n

    Missing Image

    n

    nn

    Tags

    nn

      n

    • terminal
    • n

    • Ubuntu
    • n

    • cli
    • n

    n

  • Nokia 4.2 Review

    I recently bought a Nokia 4.2 32GB/3GB phone. I am quite happy with it. But I wanted to write down the pros and cons of the device. I bought this device three months ago. It costs me around 120 EUR/130 USD. Prior to this, I used an Xiaomi Redmi Note 7. I was never happy with the software. It was bloated with so many applications I didn’t use.

    nn

    I love the software runs on Nokia 4.2. When I bought the phone it was running Android 9. Last week I got an Android 10 update too!

    nn

    n

    Missing screenshots

    n

    nn

    I like the size of the phone, very similar to iPhone 5S/SE dimensions. It is easy to handle and type with one hand. Since this is an Android One device, it is tightly connected to Google ecosystem. This is the first Android phone I started to like. But there are a few problems. The wifi module doesn’t support 5Ghz access points. Moreover, this has a mini USB port. (Almost every other phone has USB-C). Speakers are not high quality. The camera is not that good. You can’t remove Google search box on the desktop. I’m not quite happy about that.

    nn

    n

    Missing screenshots

    n

    nn

    Battery life is quite good. It lasts 1-2 days with moderate use. I am on wifi most of the times. The operating system is clutter-free. Almost no bloatware. HMD Global issues security patches frequently. Even though this phone has NFC, Google Pay is not available in Estonia. Amazing integration with Google assistant. When I turn off the alarm, it can trigger my morning routine. A routine can tell you about the weather, commute, news and many more. It is a dual sim phone and has a slot for microSD card too. You can use both SIMs and microSD card at the same time.

    nn

    Pros

    nn

      n

    • Clean Operating System
    • n

    • Periodic updates
    • n

    • Good battery life
    • n

    • Smooth integration with Google Assistant
    • n

    • Low price (100+ EUR 💸)
    • n

    nn

    Cons

    nn

      n

    • No 5GHz Wifi support
    • n

    • No USB-C
    • n

    • Low-quality Camera
    • n

    • Low-quality Speaker
    • n

    nn

    Tags

    nn

      n

    • android
    • n

    n

  • Changing OS X native Terminal theme from commands

    I used iTerm2 for a while. But it is taking a lot of memory. I wanted to configure the native terminal application on OS X.

    nn

    I have a virtual box and I used it for my development. I connect to a bridge to access production. I wanted the terminal to change colours/themes when I log in to each and every host.

    nn

    I downloaded a few themes from this repository: https://github.com/lysyi3m/macos-terminal-themes. Imported them to OS X terminal application.

    nn

    Since I am using zsh, I added below code to .zshrc. If you are on bash please change .bash_profile on your mac.

    nn

    function virt() {n  osascript -e "tell application \"Terminal\" to set current settings of front window to settings set \"Ubuntu\""n  ssh -Ap 5001 vuser@virtual-servern  osascript -e "tell application \"Terminal\" to set current settings of front window to settings set \"One Dark\""n}n

    nn

    Then I change .zshrc on my virtual server again. It calls my mac to change the active profile.

    nn

    function prod() {n  ssh -A luser@laptop -C 'osascript -e "tell application \"Terminal\" to set current settings of front window to settings set \"Red Alert\""'n  ssh -A buser@bridge.company.orgn  ssh -A luser@laptop -C 'osascript -e "tell application \"Terminal\" to set current settings of front window to settings set \"Ubuntu\""'n}n

    nn

    I use password-less login on all the servers. It makes it bit slower when you log-off and log-in.

    nn

    n

    Missing Image

    n

    nn

    Tags

    nn

      n

    • terminal
    • n

    • mac
    • n

    • osx
    • n

    n

  • VirtualBox: How to start a virtual machine without a window on OS X?

    I use a VirtualBox for my day to day work. The whole purpose is to move it to a new laptop and start using it with all the tools, configuration files and keys. But I don’t want to open the VirtualBox with a window.

    nn

    n

    Missing Images

    n

    nn

    So I found a way to launch the virtual machine using the command line without the window. My virtual machine is called “dev”. Use below command.

    nn

    $ VBoxManage startvm "dev" --type headlessn

    nn

    n

    Missing Images

    n

    nn

    Tags

    nn

      n

    • Virtual
    • n

    • osx
    • n

    • VirtualBox
    • n

    • Mac
    • n

    • virtualization
    • n

    n

  • pgloader: Migrating a table from MySQL/MariaDB to PostgreSQL

    pgloader is a helpful tool if you want to migrate tables from MySQL/MariaDB to Postgres. This works with AWS RDS instances too.

    
    LOAD DATABASE
         FROM mysql://<mysql_user>:<mysql_password>@<mysql_host>/<source_databases>
         INTO pgsql://<postgres_user>:<postgres_password>@<postgres_host>/<target_database>
    
      WITH INCLUDE DROP, CREATE TABLES
    
      SET search_path to 'public'
    
      INCLUDING ONLY TABLE NAMES MATCHING 'sample_table'
    
      ALTER TABLE NAMES MATCHING 'sample_table' RENAME TO 'tmp_sample_table'
      ALTER SCHEMA '<source_databases>' RENAME TO 'public';
    

    Let’s say we need to migrate the user table from MySQL to PostgreSQL. Your pgloader file would look like below.

    LOAD DATABASE
         FROM mysql://root:Password123@mysqldb.example.com/real_db
         INTO pgsql://postgres:Password456@pgserver101.example.com/adventure_db
    
      WITH include drop, create tables
    
      SET search_path to 'public'
    
      INCLUDING ONLY TABLE NAMES MATCHING 'user'
    
      ALTER TABLE NAMES MATCHING 'user' RENAME TO 'account'
      ALTER SCHEMA 'real_db' RENAME TO 'public';
    

    You can use the below command to start the migration

    $ pgload user.load

    Gists

    • https://gist.github.com/dedunumax/d8b2cdbf0218b03fc0c17289ae27a726
    • https://gist.github.com/dedunumax/931e113b341cad572f742bfbbd5c670d

←Previous Page
1 … 3 4 5 6 7 … 17
Next Page→
 

Loading Comments...