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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:39:20+00:00 2026-05-31T07:39:20+00:00

I am trying to port an Oracle database over to Postgres by editing scripts

  • 0

I am trying to port an Oracle database over to Postgres by editing scripts generated within Oracle and have come across some geometry type columns. I am using PostGIS in order to allow me to use geometry types and am adding the columns using the following:

CREATE TABLE TABLE_NAME
(
  ID           BIGINT                      NOT NULL,
  GEOM         GEOMETRY,
  CENTROID     GEOMETRY,
  R_CENTROID   GEOMETRY,
  NUM_POINTS   BIGINT,
  PK           BIGINT,
  EXTENT       GEOMETRY
);

This passes ok in the editor however the generated Oracle script specifies how to store the data in the geometry column as follows:

VARRAY "R_EXTENT"."SDO_ELEM_INFO" STORE AS LOB (
  ENABLE       STORAGE IN ROW
  CHUNK        8192
  RETENTION
  CACHE
  LOGGING
  INDEX       (
        STORAGE    (
                   INITIAL          64K
                    MINEXTENTS       1
                    MAXEXTENTS       UNLIMITED
                    PCTINCREASE      0
                    BUFFER_POOL      DEFAULT
                   ))
        STORAGE    (
                   INITIAL          64K
                   MINEXTENTS       1
                   MAXEXTENTS       UNLIMITED
                   PCTINCREASE      0
                   BUFFER_POOL      DEFAULT
                   ))

This is just one column of course but how can this be achieved in postgres? Or more to the point can it be done full stop.

  • 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-05-31T07:39:21+00:00Added an answer on May 31, 2026 at 7:39 am

    You can ignore the storage settings from the Oracle script. They only deal with the physical storage of the column values and don’t influence the usage of the column at all.

    PostgreSQL handles custom data types differently.

    Just keep your original CREATE TABLE you don’t need to change anything.

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

Sidebar

Related Questions

Trying to port java code to C++ I've stumbled over some weird behaviour. I
I trying to port a WinForms project to WPF. But I am have some
I have two select statements that I am trying to port from Oracle to
I am trying to import data to an Oracle database. I have .imp and
i'm trying to port some Java stuff to C#. I'm just wondering if the
I'm trying to port code over to compile using Microchip's C18 compiler for a
I'm trying to port some OpenGL rendering code I wrote for iOS to a
I'm trying to connect my application with an Oracle database using NHIBERNATE 3.1.0.4000 version
I am trying to change the port for iSQLPlus on my Oracle DB server,
While trying to port some code to compile in linux I get peculiar compilation

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.