Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8385821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:45:55+00:00 2026-06-09T17:45:55+00:00

I’ve been given a database which I can’t handle with my pc, because of

  • 0

I’ve been given a database which I can’t handle with my pc, because of little available storage and memory.

The person who gave me this db gave me the following details:

The compressed file is about 15GB, and uncompressed it’s around
85-90GB. It’ll take a similar amount of space once restored, so make
sure the machine that you restore it on has at least 220GB free to be
safe. Ideally, use a machine with at least 8GB RAM – although even our
modest 16GB RAM server can struggle with large queries on the tweet
table.

You’ll need PostgreSQL 8.4 or later, and you’ll need to create a
database to restore into with UTF8 encoding (use -E UTF8 when creating
it from the command-line). If this is a fresh PostgreSQL install, I
highly recommend you tweak the default postgresql.conf settings – use
the pgtune utility (search GitHub) to get some sane defaults for your
hardware. The defaults are extremely conservative, and you’ll see
terrible query performance if you don’t change them.

When I told him that my pc sort of sucks, he suggested me to use an Amazon EC2 instance.

My two issues are:

  1. How do I upload the db to an Amazon VM?
  2. How do I use it after that?

I’m completely ignorant regarding cloud services and databases as you can see. Any relevant tutorial will be highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:45:57+00:00Added an answer on June 9, 2026 at 5:45 pm

    If you’re new to cloud hosting, rather than using EC2 directly consider using EnterpriseDB’s cloud options. Details here.

    If you want to use EC2 directly, sign up and create an instance.

    Choose your preferred Linux distro image. I’m assuming you’ll use Linux on EC2; if you want to use Windows that’s because you probably already know how. Let the new VM provision and boot up, then SSH into it as per the documentation available on Amazon for EC2 and for that particular VM image. Perform any recommended setup for that VM image as per its documentation.

    Once you’ve done the recommended setup for that instance, you can install PostgreSQL:

    • For Ubuntu, apt-get install postgresql
    • For Fedora, yum install postgresql
    • For CentOS, use the PGDG yum repository, not the outdated version of PostgreSQL provided.

    You can now connect to Pg as the default postgres superuser:

    sudo -u postgres psql
    

    and are able to generally use PostgreSQL much the same way you do on any other computer. You’ll probably want to make yourself a user ID and a new database to restore into:

    echo "CREATE USER $USER;" | sudo -u postgres psql
    echo "CREATE DATABASE thedatabase WITH OWNER $USER" | sudo -u postgres psql
    

    Change “thedatabase” to whatever you want to call your db, of course.

    The exact procedure for restoring the dump to your new DB depends on the dump format.

    For pg_dump -Fc or PgAdmin-III custom-format dumps:

    sudo -u postgres pg_restore --dbname thedatabase thebackupfile
    

    See “man pg_restore” and the online documentation for details on pg_restore.

    For plain SQL format dumps you will want to stream the dump through a decompression program then to psql. Since you haven’t said anything about the dump file name or format it’s hard to know what to do. I’ll assume it’s gzip’ed (“.gz” file extension), in which case you’d do something like:

    gzip -d thedumpfile.gz | sudo -u postgres psql thedatabase
    

    If its file extension is “.bz2” change gzip to bzip2. If it’s a .zip you’ll want to unzip it then run psql on it using sudo -u postgres psql -f thedumpfilename.

    Once restored you can connect to the db with psql thedatabase.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm trying to select an H1 element which is the second-child in its group
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.