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 8879757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:01:22+00:00 2026-06-14T20:01:22+00:00

Reading on the web, about PostgreSQL arrays as the type for table columns, I

  • 0

Reading on the web, about PostgreSQL arrays as the type for table columns, I have found that the general reaction or opinion among developers is: “Do not use arrays, better use another table because that scales better”.

…I understand that, that is what I have basically done always.

And I have never found any case where developers can agree that an array would be the most appropriate. Is there any case where using an array is really worth it?

  • 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-14T20:01:23+00:00Added an answer on June 14, 2026 at 8:01 pm

    You can find examples of Postgresql arrays in its internal tables (namely pg_class pg_constraint).

    Arrays would be appropriate if:

    1. Your DB driver/connection/application manages them correctly (not all of them do).

    2. You do not need to filter/query the data in the array (you need all the data in the array or you do not need it at all).

    So, the perfect example – pg_constraint.conkey :

    1. Postgres can handle its arrays correctly 🙂

    2. It need all the columns to check them (or do not need them at all if no check is applied)

    UPD: And in all cases of “appropriate” use of arrays, I can think of, they are always small 0-10 elements arrays.

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

Sidebar

Related Questions

Lately I have been reading about web crawling, indexing and serving. I have found
I have been reading all over the web about this and still can't understand
I have been reading about the responsive web pattern and I have successfully implemented
I have been reading a bit about Web Matrix, I like the simpleness of
I have been reading this link from Steven Sanderson about mobile web development http://www.asp.net/learn/whitepapers/add-mobile-pages-to-your-aspnet-web-forms-mvc-application
I was reading about Tornado Web Server. It says that it is non-blocking web
I'm reading a book about GWT (Google Web Toolkit) where the author quote the
I'm reading the tutorial about configuring JSON for RESTful web services: https://blogs.oracle.com/enterprisetechtips/entry/configuring_json_for_restful_web JAXB defines
I've been reading up about MVC 4 and was interested in the web API
surfing on the web, reading about django dev best practices points to use pickled

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.