Softwr

Cloud · head to head

Amazon S3 vs PostgreSQL

Amazon S3 logo

Amazon S3

Cloud

Amazon Web Services' pay-as-you-go object storage service

From
On request
Free plan
No
PostgreSQL logo

PostgreSQL

Databases

Open source relational database

From
Free
Free plan
Yes

The short version

  • PostgreSQL is a powerful, open source object-relational database system.
  • PostgreSQL is free; Amazon S3 prices on request.
  • Only Amazon S3 lists object storage in buckets; only PostgreSQL lists ACID Compliance.
  • Where Amazon S3 falls short: billing depends on storage class, requests and transfer, so total cost is hard to predict.
  • Where PostgreSQL falls short: requires manual scaling across multiple machines for very large deployments.

How do Amazon S3 and PostgreSQL differ?

Amazon S3 and PostgreSQL differ on starting price (On request against Free), free tier (No against Yes) and platforms. Only the attributes on which Amazon S3 and PostgreSQL actually diverge.

Attributes where Amazon S3 and PostgreSQL differ
AttributeAmazon S3PostgreSQL
Starting priceOn requestFree
Free tierNoYes
PlatformsWebLinux, Windows, macOS
CategoryCloudDatabases

Not yet recorded: pricing model for PostgreSQL, founded for Amazon S3.

Which features does each one have?

They share 1 listed feature; 8 appear only for Amazon S3 and 15 only for PostgreSQL. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Amazon S3

  • Object storage in buckets
  • Multiple storage classes including Glacier
  • S3 Intelligent-Tiering
  • Versioning
  • Encryption by default
  • Static website hosting
  • Time-limited authenticated URLs
  • Multipart upload

Only in PostgreSQL

  • ACID Compliance
  • JSON/JSONB Support
  • Full-text Search
  • Extensibility
  • Advanced Indexing
  • Partitioning
  • pgAdmin
  • DBeaver

Both cover

  • Replication

What is each one used for?

Amazon S3 is most often brought in for data lake storage for analytics; PostgreSQL for transaction processing. The jobs each tool is most often brought in to do.

Amazon S3

  • Data lake storage for analyticsnot PostgreSQL
  • Application and mobile app file storagenot PostgreSQL
  • Long-term archives in Glacier classesnot PostgreSQL
  • Static website hostingnot PostgreSQL

PostgreSQL

  • Transaction processingnot Amazon S3
  • Data storagenot Amazon S3
  • Application backendnot Amazon S3
  • Reportingnot Amazon S3
  • Data analyticsnot Amazon S3

Where do Amazon S3 and PostgreSQL fall short?

Amazon S3's most cited limit: billing depends on storage class, requests and transfer, so total cost is hard to predict. PostgreSQL's: requires manual scaling across multiple machines for very large deployments. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon S3

  • Billing depends on storage class, requests and transfer, so total cost is hard to predict
  • Outbound internet data transfer is charged beyond the first 100 GB per month
  • Objects larger than 5 GB need multipart upload because single uploads are capped at 5 GB
  • Versioning is disabled by default and must be switched on per bucket
  • Available only on AWS; moving data elsewhere means egress and re-integration work

PostgreSQL

  • Requires manual scaling across multiple machines for very large deployments
  • Performance tuning requires deep knowledge of database internals
  • No built-in graphical admin interface; command-line tools are primary method
  • Each major version is supported for only 5 years after its initial release, after which it is end-of-life
  • Major version upgrades break on-disk compatibility and require a full dump and reload or the pg_upgrade tool

How much do Amazon S3 and PostgreSQL cost?

PostgreSQL is free to use. Plan by plan below, from each vendor's own pricing page.

Amazon S3

On request

No published plan breakdown. See the Amazon S3 review.

PostgreSQL

Free
  • PostgreSQLFree

Which should you pick?

Choose Amazon S3 if

  • You need object storage in buckets.
  • You also want multiple storage classes including glacier.

Choose PostgreSQL if

  • You need acid compliance.
  • You want to start without paying.
  • You work on Linux, Windows, macOS.
  • You also want json/jsonb support.

Questions people ask

Is Amazon S3 or PostgreSQL better?
It depends on the job. Amazon S3 fits data lake storage for analytics; PostgreSQL fits transaction processing. Amazon S3 starts at On request and PostgreSQL at Free.
Which is cheaper, Amazon S3 or PostgreSQL?
PostgreSQL has a free tier; the other does not. Paid plans start at On request for Amazon S3 and Free for PostgreSQL.
Does Amazon S3 or PostgreSQL run on more platforms?
Amazon S3 runs on Web. PostgreSQL runs on Linux, Windows, macOS.
Can I use PostgreSQL for free?
Yes. PostgreSQL has a free tier, so you can try it without paying. Amazon S3 starts at On request.
What is Amazon S3 best used for?
Amazon S3 is most often used for data lake storage for analytics, application and mobile app file storage, long-term archives in glacier classes, static website hosting. Of those, data lake storage for analytics and application and mobile app file storage are not what PostgreSQL is typically brought in for.
What can Amazon S3 do that PostgreSQL cannot?
Amazon S3 covers Object storage in buckets, Multiple storage classes including Glacier, S3 Intelligent-Tiering, Versioning. PostgreSQL covers ACID Compliance, JSON/JSONB Support, Full-text Search, Extensibility. Both handle Replication.

Answered from the vendors’ own pages

Amazon S3: What is Amazon S3?

Amazon S3 is an object storage service from AWS, described as built to retrieve any amount of data from anywhere. It is used for data lakes, cloud-native applications and mobile apps.

Source
PostgreSQL: Is PostgreSQL completely free?

Yes. PostgreSQL is completely free and open source with no licensing fees or restrictions on use.

Source
Amazon S3: How is S3 priced?

AWS says the cost depends on object size, storage duration and storage class, with no minimum charge. Inbound transfer from the internet is free, as are transfers between buckets in the same Region, and the first 100 GB per month out to the internet is free.

Source
PostgreSQL: What platforms does PostgreSQL run on?

PostgreSQL runs on all major operating systems including Linux, Windows, macOS, BSD, and commercial Unix variants, and has been proven highly scalable managing terabytes to petabytes of data.

Source
Amazon S3: What is the maximum object size in S3?

Objects can be up to 5 TB. A single upload operation is capped at 5 GB, so larger objects use the multipart upload API.

Source
PostgreSQL: What procedural languages are supported?

PostgreSQL supports stored functions and procedures in multiple languages including PL/pgSQL, Perl, Python, Tcl, Java, JavaScript, R, and Rust.

Source
Amazon S3: Is S3 versioning on by default?

No. Versioning is available but disabled by default. Default bucket-level encryption was added in November 2017.

Source
PostgreSQL: What is ACID compliance in PostgreSQL?

PostgreSQL has been ACID-compliant since 2001, ensuring data integrity through atomicity, consistency, isolation, and durability guarantees for all transactions.

Source
PostgreSQL: Does PostgreSQL support JSON data?

Yes. PostgreSQL supports JSON and JSONB data types for storing and querying JSON documents, along with XML and other document formats.

Source
Share

Related pages

Other head to heads