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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:38:57+00:00 2026-06-10T02:38:57+00:00

Before I buy something better than Shared Database on Heroku I would like to

  • 0

Before I buy something better than Shared Database on Heroku I would like to know if I will be able to , let’s say create custom CASTS in postgresql?
For this I need to log in as an user with admin privileges (data-type owner, for example bigint owner).

  • 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-10T02:38:58+00:00Added an answer on June 10, 2026 at 2:38 am

    We don’t give you a superuser role on any of our databases for the security and stability of all our customers.

    While the provided role does own the schema and database you connect to, it does not currently also own types. This is what I’d call an obscure use case though, as the alternative of implicit casting is clearer and achieves the same purpose.

    There are other situations where superuser privileges is ideal, for example the ability to run pg_cancel_backend or install extension. We’ve solved both of these cases via a backport to the 9.0 lineup (available by default in 9.1) and extension whitelisting respectively.

    EDIT – an example comparing text types to integers.

    For implicit casting, can specify the type using some_value::new_type notation: some_string::integer:

    del8a7mgo0cml=> create table cast_test (number integer, string text);
    CREATE TABLE
    del8a7mgo0cml=> insert into cast_test VALUES (1, '1');
    INSERT 0 1
    del8a7mgo0cml=> insert into cast_test VALUES (2, '1');
    INSERT 0 1
    del8a7mgo0cml=> insert into cast_test VALUES (2, '2');
    INSERT 0 1
    del8a7mgo0cml=> select * from cast_test;
     number | string 
    --------+--------
          1 | 1
          2 | 1
          2 | 2
    (3 rows)
    del8a7mgo0cml=> select * from cast_test where number = string::integer;
     number | string 
    --------+--------
          1 | 1
          2 | 2
    (2 rows)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Before I start, I will say that I am a new to programming. I
Do i need to buy a license or copyright the content like wallpapers before
I need preg_match_all to match something like following: <a href=cart.php?Stock=11.482&qty=1>Buy</a> The code I'm using:
Before asking the question let me preface with the fact that I am new
Before asking my question, let me explain the context. CONTEXT: I have a web
Before saying anything I have to say that, albeit I'm an experienced programmer in
Before I ask the question let me state that I have attempted to google
I have not used MAC OSX before, but I wanted to buy one for
I'd like to buy an Acer Liquid E as an Android test phone (normal
I know I've seen a list before of the predefined VisualStateGroups and states for

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.