{"id":6773,"date":"2016-01-12T09:46:15","date_gmt":"2016-01-12T08:46:15","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/"},"modified":"2016-01-12T09:46:15","modified_gmt":"2016-01-12T08:46:15","slug":"postgresql-on-amazon-rds-loading-the-beast","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/","title":{"rendered":"PostgreSQL on Amazon RDS &#8211; Loading the beast"},"content":{"rendered":"<p>The last posts outlined how you can <a href=\"http:\/\/dbi-services.com\/blog\/postgresql-on-amazon-rds-setting-up-the-beast\/\" target=\"_blank\">bring up a PostgreSQL instance in the Amazon cloud<\/a>, how you can <a href=\"http:\/\/dbi-services.com\/blog\/postgresql-on-amazon-rds-securing-the-beast\/\" target=\"_blank\">restrict access to the instance<\/a>, how you can <a href=\"http:\/\/dbi-services.com\/blog\/postgresql-on-amazon-rds-configuring-the-beast\/\" target=\"_blank\">configure it<\/a> and how you can <a href=\"http:\/\/dbi-services.com\/blog\/postgresql-on-amazon-rds-adding-a-replica-to-the-beast\/\" target=\"_blank\">add a read replica<\/a>. In this post we&#8217;ll look at how you can load data to the instance. A database without data does not make much sense, does it?<\/p>\n<p>For having some data available to load I&#8217;ll populate my local PostgreSQL 9.4 instance with a new database and some data:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\n(postgres@[local]:4445) [postgres] &gt; select version();\n                                                         version                                       \n                   \n-------------------------------------------------------------------------------------------------------\n-------------------\n PostgreSQL 9.4.1dbi services on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.8.3 20140911 (Red Ha\nt 4.8.3-9), 64-bit\n(1 row)\n\nTime: 1.256 ms\n\n(postgres@[local]:4445) [postgres] &gt; create database cloud;\nCREATE DATABASE\nTime: 1948.216 ms\n(postgres@[local]:4445) [postgres] &gt; \\c cloud\nYou are now connected to database \"cloud\" as user \"postgres\".\n\n(postgres@[local]:4445) [cloud] &gt; create table tcloud1 ( a int );\nCREATE TABLE\nTime: 196.661 ms\n\n(postgres@[local]:4445) [cloud] &gt; insert into tcloud1 values (generate_series(1,1000000));\nINSERT 0 1000000\nTime: 6899.367 ms\n\n(postgres@[local]:4445) [cloud] &gt; create index icloud1 on tcloud1 (a);\nCREATE INDEX\nTime: 5390.778 ms\n<\/pre>\n<p>So, I have a database called &#8220;cloud&#8221; which contains a table with 1&#8217;000&#8217;000 rows and an index.<\/p>\n<p>The first obvious method to get this local database to the cloud is <a href=\"http:\/\/www.postgresql.org\/docs\/9.5\/static\/app-pgdump.html\" target=\"_blank\">pg_dump<\/a>, so lets create a dump of my local database:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\npostgres@oel7:\/home\/postgres\/ [PG3] time pg_dump -f \/var\/tmp\/cloud.dmp cloud\n\nreal\t0m0.217s\nuser\t0m0.018s\nsys\t0m0.051s\npostgres@oel7:\/home\/postgres\/ [PG3] head \/var\/tmp\/cloud.dmp\n--\n-- PostgreSQL database dump\n--\n\nSET statement_timeout = 0;\nSET lock_timeout = 0;\nSET client_encoding = 'UTF8';\nSET standard_conforming_strings = on;\nSET check_function_bodies = false;\nSET client_min_messages = warning;\n<\/pre>\n<p>I should be able to load this dump into the cloud database. First I&#8217;ll need to create the database in the cloud instance:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\ndaniel1=&gt; create database cloud;\nCREATE DATABASE\ndaniel1=&gt; \\l\n                                  List of databases\n   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   \n-----------+----------+----------+-------------+-------------+-----------------------\n cloud     | daniel1  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | \n daniel1   | daniel1  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | \n postgres  | daniel1  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | \n rdsadmin  | rdsadmin | UTF8     | en_US.UTF-8 | en_US.UTF-8 | rdsadmin=CTc\/rdsadmin\n template0 | rdsadmin | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c\/rdsadmin          +\n           |          |          |             |             | rdsadmin=CTc\/rdsadmin\n template1 | daniel1  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c\/daniel1           +\n           |          |          |             |             | daniel1=CTc\/daniel1\n(6 rows)\n<\/pre>\n<p>Having the database available I should be able to load the data:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\ndwe@dwe:~$ time psql -h daniel1.c8rrtm2sxmym.eu-central-1.rds.amazonaws.com -U daniel1 cloud &lt; \/var\/tmp\/cloud.dmp\nPassword for user daniel1: \nSET\nSET\nSET\nSET\nSET\nSET\nCREATE EXTENSION\nERROR:  must be owner of extension plpgsql\nSET\nSET\nSET\nCREATE TABLE\nERROR:  role &quot;postgres&quot; does not exist\nCREATE INDEX\nREVOKE\nERROR:  role &quot;postgres&quot; does not exist\nERROR:  role &quot;postgres&quot; does not exist\nGRANT\n\nreal\t0m17.894s\nuser\t0m0.128s\nsys\t0m0.024s\n<\/pre>\n<p>Looks not so bad. The user postgres does not exist in the cloud instance, therefore the errors. When I check the dump file for that:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\ndwe@dwe:~$ cat \/var\/tmp\/cloud.dmp | grep postgres\n-- Name: tcloud1; Type: TABLE; Schema: public; Owner: postgres; Tablespace: \nALTER TABLE tcloud1 OWNER TO postgres;\n-- Data for Name: tcloud1; Type: TABLE DATA; Schema: public; Owner: postgres\n-- Name: icloud1; Type: INDEX; Schema: public; Owner: postgres; Tablespace: \n-- Name: public; Type: ACL; Schema: -; Owner: postgres\nREVOKE ALL ON SCHEMA public FROM postgres;\nGRANT ALL ON SCHEMA public TO postgres;\n<\/pre>\n<p>&#8230; it is just the permissions which I do ignore here. Otherwise I&#8217;d have to re-create the database, change the statements in the dump file and all would be fine. The extension plpgsql does exist anyway:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\ndaniel1=&gt; \\c cloud\npsql (9.3.10, server 9.4.5)\nWARNING: psql major version 9.3, server major version 9.4.\n         Some psql features might not work.\nSSL connection (cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256)\nYou are now connected to database \"cloud\" as user \"daniel1\".\n\ncloud=&gt; \\dx\n                 List of installed extensions\n  Name   | Version |   Schema   |         Description          \n---------+---------+------------+------------------------------\n plpgsql | 1.0     | pg_catalog | PL\/pgSQL procedural language\n(1 row)\n<\/pre>\n<p>The important point is if my data is there:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\ncloud=&gt; select count(*) from tcloud1;\n  count  \n---------\n 1000000\n(1 row)\n\ncloud=&gt; \\d+ tcloud1\n                       Table \"public.tcloud1\"\n Column |  Type   | Modifiers | Storage | Stats target | Description \n--------+---------+-----------+---------+--------------+-------------\n a      | integer |           | plain   |              | \nIndexes:\n    \"icloud1\" btree (a)\nHas OIDs: no\n<\/pre>\n<p>Yes, it is. As I did add a replica in the last post the data should be there too:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\ndwe@dwe:~$ psql -h daniel2.c8rrtm2sxmym.eu-central-1.rds.amazonaws.com -U daniel1 cloud -c \"select count(*) from tcloud1\"\nPassword for user daniel1: \n  count  \n---------\n 1000000\n(1 row)\n<\/pre>\n<p>Cool. Quite easy. Another option would be to use the <a href=\"http:\/\/www.postgresql.org\/docs\/9.5\/static\/sql-copy.html\" target=\"_blank\">copy command<\/a>. Lets prepare the source:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\n(postgres@[local]:4445) [postgres] &gt; \\c cloud\nYou are now connected to database \"cloud\" as user \"postgres\".\n(postgres@[local]:4445) [cloud] &gt; create table tcloud2 as select * from tcloud1;\nSELECT 1000000\nTime: 5221.107 ms\n\n(postgres@[local]:4445) [cloud] &gt; copy tcloud2 to '\/var\/tmp\/tcloud2.dmp';\nCOPY 1000000\nTime: 151.243 ms\n\npostgres@[local]:4445) [cloud] &gt; \\! head \/var\/tmp\/tcloud2.dmp\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n<\/pre>\n<p>And now load it to the cloud instance:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\ndwe@dwe:~$ psql -h daniel1.c8rrtm2sxmym.eu-central-1.rds.amazonaws.com -U daniel1\nPassword for user daniel1: \npsql (9.3.10, server 9.4.5)\nWARNING: psql major version 9.3, server major version 9.4.\n         Some psql features might not work.\nSSL connection (cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256)\nType \"help\" for help.\n\ndaniel1=&gt; \\c cloud\npsql (9.3.10, server 9.4.5)\nWARNING: psql major version 9.3, server major version 9.4.\n         Some psql features might not work.\nSSL connection (cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256)\nYou are now connected to database \"cloud\" as user \"daniel1\".\n\ncloud=&gt; create table tcloud2 (like tcloud1 including indexes);\nCREATE TABLE\ncloud=&gt; \n\ncloud=&gt; copy tcloud2 from '\/var\/tmp\/tcloud2.dmp';\nERROR:  must be superuser to COPY to or from a file\nHINT:  Anyone can COPY to stdout or from stdin. psql's \\copy command also works for anyone.\n<\/pre>\n<p>Hm, so my user is not allowed to do that as I am not a superuser. But the hint helps. We just can use psql&#8217;s &#8220;\\copy&#8221; command instead:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">\ncloud=&gt; \\copy tcloud2 from '\/var\/tmp\/tcloud2.dmp';\ncloud=&gt; select count(*) from tcloud2;\n  count  \n---------\n 1000000\n(1 row)\n\ncloud=&gt; \n<\/pre>\n<p>All the data is there. Of course you can use graphical tools like <a href=\"http:\/\/www.pgadmin.org\/\" target=\"_blank\">pgadmin3<\/a> to load the data, too:<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/pgadmincloud.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/pgadmincloud.png\" alt=\"pgadmincloud\" width=\"1031\" height=\"685\" class=\"aligncenter size-full wp-image-6434\" \/><\/a> <\/p>\n<p>Conclusion: It is really easy and fast to bring data from a local PostgreSQL instance to a cloud instance. Happy loading &#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The last posts outlined how you can bring up a PostgreSQL instance in the Amazon cloud, how you can restrict access to the instance, how you can configure it and how you can add a read replica. In this post we&#8217;ll look at how you can load data to the instance. A database without data&hellip;&nbsp;<\/p>\n","protected":false},"author":28,"featured_media":6775,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[4133],"tags":[135],"class_list":["post-6773","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database","tag-cloud"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.4 (Yoast SEO v28.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>PostgreSQL on Amazon RDS - Loading the beast - dbi services | Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PostgreSQL on Amazon RDS - Loading the beast\" \/>\n<meta property=\"og:description\" content=\"The last posts outlined how you can bring up a PostgreSQL instance in the Amazon cloud, how you can restrict access to the instance, how you can configure it and how you can add a read replica. In this post we&#8217;ll look at how you can load data to the instance. A database without data&hellip;&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services | Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-12T08:46:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/pgadmincloud-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1031\" \/>\n\t<meta property=\"og:image:height\" content=\"685\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Open source Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Open source Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/postgresql-on-amazon-rds-loading-the-beast\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/postgresql-on-amazon-rds-loading-the-beast\\\/\"},\"author\":{\"name\":\"Open source Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/0b4548362cac3eeff8b3eaf329e3530a\"},\"headline\":\"PostgreSQL on Amazon RDS &#8211; Loading the beast\",\"datePublished\":\"2016-01-12T08:46:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/postgresql-on-amazon-rds-loading-the-beast\\\/\"},\"wordCount\":350,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/postgresql-on-amazon-rds-loading-the-beast\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/pgadmincloud-1.png\",\"keywords\":[\"Cloud\"],\"articleSection\":[\"Database\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/postgresql-on-amazon-rds-loading-the-beast\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/postgresql-on-amazon-rds-loading-the-beast\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/postgresql-on-amazon-rds-loading-the-beast\\\/\",\"name\":\"PostgreSQL on Amazon RDS - Loading the beast - dbi services | Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/postgresql-on-amazon-rds-loading-the-beast\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/postgresql-on-amazon-rds-loading-the-beast\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/pgadmincloud-1.png\",\"datePublished\":\"2016-01-12T08:46:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/postgresql-on-amazon-rds-loading-the-beast\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/postgresql-on-amazon-rds-loading-the-beast\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/postgresql-on-amazon-rds-loading-the-beast\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/pgadmincloud-1.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/pgadmincloud-1.png\",\"width\":1031,\"height\":685},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/postgresql-on-amazon-rds-loading-the-beast\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PostgreSQL on Amazon RDS &#8211; Loading the beast\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#organization\"},\"alternateName\":\"dbi Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#organization\",\"name\":\"dbi services\",\"alternateName\":\"dbi\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialised in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/0b4548362cac3eeff8b3eaf329e3530a\",\"name\":\"Open source Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/open-source-author.png\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/open-source-author.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/open-source-author.png\",\"caption\":\"Open source Team\"},\"description\":\"Posts published under the Open source Team account are collective contributions by the dbi services open infrastructure consultants. The practice covers open-source databases and platforms, PostgreSQL first of all, along with MySQL, MariaDB, and Linux, from architecture, replication, and high availability to performance tuning and operations under service level agreements, and contributes actively to the PostgreSQL community.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/open-source-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"PostgreSQL on Amazon RDS - Loading the beast - dbi services | Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/","og_locale":"en_US","og_type":"article","og_title":"PostgreSQL on Amazon RDS - Loading the beast","og_description":"The last posts outlined how you can bring up a PostgreSQL instance in the Amazon cloud, how you can restrict access to the instance, how you can configure it and how you can add a read replica. In this post we&#8217;ll look at how you can load data to the instance. A database without data&hellip;&nbsp;","og_url":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/","og_site_name":"dbi services | Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2016-01-12T08:46:15+00:00","og_image":[{"width":1031,"height":685,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/pgadmincloud-1.png","type":"image\/png"}],"author":"Open source Team","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Open source Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/"},"author":{"name":"Open source Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0b4548362cac3eeff8b3eaf329e3530a"},"headline":"PostgreSQL on Amazon RDS &#8211; Loading the beast","datePublished":"2016-01-12T08:46:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/"},"wordCount":350,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/pgadmincloud-1.png","keywords":["Cloud"],"articleSection":["Database"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/","url":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/","name":"PostgreSQL on Amazon RDS - Loading the beast - dbi services | Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/pgadmincloud-1.png","datePublished":"2016-01-12T08:46:15+00:00","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/pgadmincloud-1.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/pgadmincloud-1.png","width":1031,"height":685},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/postgresql-on-amazon-rds-loading-the-beast\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PostgreSQL on Amazon RDS &#8211; Loading the beast"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/blog\/#organization"},"alternateName":"dbi Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/blog\/#organization","name":"dbi services","alternateName":"dbi","url":"https:\/\/www.dbi-services.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialised in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0b4548362cac3eeff8b3eaf329e3530a","name":"Open source Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/05\/open-source-author.png","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/05\/open-source-author.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/05\/open-source-author.png","caption":"Open source Team"},"description":"Posts published under the Open source Team account are collective contributions by the dbi services open infrastructure consultants. The practice covers open-source databases and platforms, PostgreSQL first of all, along with MySQL, MariaDB, and Linux, from architecture, replication, and high availability to performance tuning and operations under service level agreements, and contributes actively to the PostgreSQL community.","url":"https:\/\/www.dbi-services.com\/blog\/author\/open-source-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/6773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=6773"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/6773\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media\/6775"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=6773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=6773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=6773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}