Use pipelines to migrate data and pipelines to migrate data

Source: Internet
Author: User
Tags psql

Use pipelines to migrate data and pipelines to migrate data

When the disk space is insufficient, use the named or anonymous pipeline to migrate and import data. Pay attention to the permission of the named pipeline.

0. Name PIP 0 [pg @ h1 ~] $ Psql gtlions-ac "select 't3 'tab, count (*) from t3 union all select 't4', count (*) from t4;" select 't3 'tab, count (*) from t3 union all select 't4 ', count (*) from t4; tab | count ----- + ------- t3 | 100 t4 | 0 (2 rows) [pg @ h1 ~] $ Mknod syncpip p [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to '/home/pg/sync'" | psql gtlions-p 5432-c "copy t4 from'/home/pg/sync '"ERROR: cocould not open file "/home/pg/sync" for reading: No such file or directory [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to '/home/pg/syncpip'" | psql gtlions-p 5432-c "copy t4 from'/home/pg/syncpip '"COPY 100 [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to '/home/pg/syncpip'" | psql gtlions-p 5432-c "copy t4 from'/home/pg/syncpip '"COPY 100 [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to '/home/pg/syncpip'" | psql gtlions-p 5432-c "copy t4 from'/home/pg/syncpip '"COPY 100 [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to '/home/pg/syncpip'" | psql gtlions-p 5432-c "copy t4 from'/home/pg/syncpip '"COPY 100 [pg @ h1 ~] $ Psql gtlions-ac "select 't3 'tab, count (*) from t3 union all select 't4', count (*) from t4;" select 't3 'tab, count (*) from t3 union all select 't4 ', count (*) from t4; tab | count ----- + ------- t3 | 100 t4 | 400 (2 rows) 1. name PIP 1 [pg @ h1 ~] $ Rm-rf sync * [pg @ h1 ~] $ Mkfifo syncpip [pg @ h1 ~] $ Ll syncpipprw-rw-r -- 1 pg 0 November 6 09:15 syncpip [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to '/home/pg/syncpip'" | psql gtlions-p 5432-c "copy t4 from'/home/pg/syncpip '"COPY 100 [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to '/home/pg/syncpip'" | psql gtlions-p 5432-c "copy t4 from'/home/pg/syncpip '"COPY 100 [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to '/home/pg/syncpip'" | psql gtlions-p 5432-c "copy t4 from'/home/pg/syncpip '"COPY 100 [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to '/home/pg/syncpip'" | psql gtlions-p 5432-c "copy t4 from'/home/pg/syncpip '"COPY 100 [pg @ h1 ~] $ Psql gtlions-ac "select 't3 'tab, count (*) from t3 union all select 't4', count (*) from t4;" select 't3 'tab, count (*) from t3 union all select 't4 ', count (*) from t4; tab | count ----- + ------- t3 | 100 t4 | 800 (2 rows) 2. unName PIP [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to stdout" | psql gtlions-p 5432-c "copy t4 from stdin" [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to stdout" | psql gtlions-p 5432-c "copy t4 from stdin" [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to stdout" | psql gtlions-p 5432-c "copy t4 from stdin" [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to stdout" | psql gtlions-p 5432-c "copy t4 from stdin" [pg @ h1 ~] $ Psql gtlions-p 5432-c "copy t3 to '/home/pg/syncpip'" | psql gtlions-p 5432-c "copy t4 from'/home/pg/syncpip '"COPY 100 [pg @ h1 ~] $ Psql gtlions-ac "select 't3 'tab, count (*) from t3 union all select 't4', count (*) from t4;" select 't3 'tab, count (*) from t3 union all select 't4 ', count (*) from t4; tab | count ----- + ------- t3 | 100 t4 | 1300 (2 rows)


-EOF-
How to write a report on the migration pipeline of a Water Supply Company?

Application Form
XXX Water Supply Company
The building No. XX located in XXXX has been planned by the urban construction department and obtained the planning license, but the water supply pipeline of your organization is located in it. Therefore, we hereby apply for the migration of the water supply pipeline from your organization, the fee is paid by me.
Hereby apply
Applicant: XXX
Year, month, and day

Is there a risk of data loss during "desktop migration" using Kaseya IT management technology?

You don't have to worry about this. Kaseya's desktop Migration Mode will collect and back up data according to your requirements, because the system's alarm program is automatically enabled during the "desktop migration" process, it will monitor the status of the machine instead of you. As there is a warning in all steps of desktop migration, warnings in Kaseya may turn into alarms, tags, emails, or even trigger an agent to run automatically. This not only greatly improves security, but also saves you a lot of effort, do it with confidence. Hope to help you!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.