473,403 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

what is the table space for the indexes created implicitly?

when the primary key constraint created, the pgAdmin implicitly creates the index for the selected column
but I want to know what is the table space for these
indexes. I tried to execute the query:
Expand|Select|Wrap|Line Numbers
  1.  select * from pg_indexes 
but the column "tablespace" appears empty for the implicit
indexes, what that means?


and what the difference between "pg_indexes" table and
"pg_index" table?

THANKS.
Oct 11 '10 #1

✓ answered by rski

Read manual.

http://www.postgresql.org/docs/8.1/s...blespaces.html
Two tablespaces are automatically created by initdb. The pg_global tablespace is used for shared system catalogs. The pg_default tablespace is the default tablespace of the template1 and template0 databases (and, therefore, will be the default tablespace for other databases as well, unless overridden by a TABLESPACE clause in CREATE DATABASE).
http://www.postgresql.org/docs/8.3/i...g-indexes.html
http://www.postgresql.org/docs/8.3/i...-pg-index.html

2 4216
rski
700 Expert 512MB
Read manual.

http://www.postgresql.org/docs/8.1/s...blespaces.html
Two tablespaces are automatically created by initdb. The pg_global tablespace is used for shared system catalogs. The pg_default tablespace is the default tablespace of the template1 and template0 databases (and, therefore, will be the default tablespace for other databases as well, unless overridden by a TABLESPACE clause in CREATE DATABASE).
http://www.postgresql.org/docs/8.3/i...g-indexes.html
http://www.postgresql.org/docs/8.3/i...-pg-index.html
Oct 11 '10 #2
I did this:
CREATE TABLE sales (amount integer UNIQUE);

and got this:
NOTICE: CREATE TABLE / UNIQUE will create implicit index "sales_amount_key" for table "sales"

in pgAdminIII's query tool.

Because it's an index, I couldn't select from it.

---+
phil
Oct 11 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Bing Wu | last post by:
Hi Folks, I have a problem while creating a big table space. It reports error: SQL1139N The total size of the table space is too big Explanation: The size of the current table space is too...
2
by: Oliver Stratmann | last post by:
Hello All! I've got a problem with our DB2/NT 8.1.0 Database. The following SELECT on a big Table (2,5 Million rows) finishes with the Error "Unable to allocate new pages in table space...
0
by: GB | last post by:
The main and index table space have page sizes of 8k The long data table space has page size of 4k The page size of the temporary table is 4k REORG TABLE USERBLAH.MYTABLE USE TEMPTBS; ...
3
by: Joe Weinstein | last post by:
Hi all. I am debugging a JDBC application. I find that a certain query that has an order-by clause fails with a SQL1585N A system temporary table space with sufficient page size does not exist....
1
by: efiryago | last post by:
I have about 200 tables in a DB2 V8.1.4 LUW application schema. There is a third party java appllication that accesses this schema. It started failing and relevant entries in db2diag.log have this:...
6
by: gimme_this_gimme_that | last post by:
I'm new to DB2 ... The following statement results in a SQL1585N message : "A system temporary table space with sufficient page size does not exist" Note that the column FIELD_DETAIL is a...
2
by: rAinDeEr | last post by:
Hi, I have Db2 9 installed in Windows. Am trying to create a table with the following DDL CREATE TABLE DB2N.T_CO ( a1 VARCHAR(100) NOT NULL, b1 VARCHAR(255), c1 VARCHAR(255), d1 ...
3
by: James | last post by:
I am not sure whether users can access data or insert new data into tables who belong to a rebalanced table space after new containers are added? (DB2 version is 8.x) What I know is user can not...
1
by: ellenraju | last post by:
When we create an object in oracle we can specify table space, if not it will take default table space, while creating global temporary table how can we specify the table space...and even if we...
6
by: pravin.prabhakar | last post by:
Hello, Our 4K index tablespace has grown to 64GB. It has maxed out. I want to increase the page size from 4 to 16K. What will be the safest method? Any suggestions? We are in DB2 UDB 8.2 Sun...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.