473,889 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PostgreSQL Tablespace Creation Problem

24 New Member
I am not able to create a tablespace in PostgreSQL. what should i mention for Location field. What ever i mention, it gives me error saying Table Space location must be an absolute path.

Thanks in Anticipation
Nov 20 '07 #1
5 11201
rski
700 Recognized Expert Contributor
I am not able to create a tablespace in PostgreSQL. what should i mention for Location field. What ever i mention, it gives me error saying Table Space location must be an absolute path.

Thanks in Anticipation
Give a full path for the location of a tablespace
Nov 20 '07 #2
robintwos
24 New Member
Give a full path for the location of a tablespace
I tried giving full path also. like C:\tablespace. Still i am not successful
Nov 21 '07 #3
rski
700 Recognized Expert Contributor
I tried giving full path also. like C:\tablespace. Still i am not successful
show the full query you write
Nov 21 '07 #4
robintwos
24 New Member
I could create the TS in postgres user. But i was trying to create another TS outside postgres user. which is failing.

I believe i can't create TS in another user . But still was trying to confirm

This was the SQL i used to create TS in postgres

CREATE TABLESPACE "SampleTS"
OWNER postgres
LOCATION 'C:/Documents and Settings/postgres/SampleTS';

And to create TS in another user , which is failing with an error saying "Could not set permissions on directory"

CREATE TABLESPACE "SampleTS1"
LOCATION 'C:/Documents and Settings/Administrator/SampleTS';
Nov 21 '07 #5
rski
700 Recognized Expert Contributor
I could create the TS in postgres user. But i was trying to create another TS outside postgres user. which is failing.

I believe i can't create TS in another user . But still was trying to confirm

This was the SQL i used to create TS in postgres

CREATE TABLESPACE "SampleTS"
OWNER postgres
LOCATION 'C:/Documents and Settings/postgres/SampleTS';

And to create TS in another user , which is failing with an error saying "Could not set permissions on directory"

CREATE TABLESPACE "SampleTS1"
LOCATION 'C:/Documents and Settings/Administrator/SampleTS';

User must have 'write right' to this directory.
Nov 21 '07 #6

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

Similar topics

1
20360
by: Jens H. Hamann | last post by:
Hi, I am having a strange problem with the storage parameters in Oracle 9.2.0.1 database. I create a tablespace with some default storage parameters but when i am adding a table to the tablespace i can not override the NEXT statement? No matter what i set the NEXT storage parameters to, it is always the same as the tablespace default, the INITIAL is overriden just fine. I have included my script below, can someone please point out what...
29
3542
by: Paul Ganainm | last post by:
Hi all, Following up on another thread, here is a comparison between FB and PG from an FB'ers POV. BTW, FB is the love-child of Open-Source-Interbase. BTW, I have tried to be as accurate as I can with the information available to me at this point in time - I was unable to find anything resembling a feature list on the FB site, so most of this is from memory. I do have an email account on the various lists on that site, and I will post...
6
5753
by: robert | last post by:
just got out of a "class" on EXPLAIN, from a 390/v6 maven. was told that ACCESSTYPE = 'R' in the plan_table meant a TableSpace scan. hmmmm. next step up (or down, depending on your outlook) wasn't a Table Scan. thought this might be a MainFrame thing; but a look at DB2Info on my UDB 7.2 server showed the same thing. this is truly puzzling. is there an explanation of EXPLAIN which describes how to get a Table Scan???? or are we...
0
2022
by: Yuri Ludevig | last post by:
I recently was asked to switch from using raw lv's to file system and the first problem I encountered was with calculating the exact size for tablespaces. This is an example: I create LV and mount a file system over it. Let's say my page size is 16K. I tried to divide the free space (from df -k command) and use this number in my create tablespace command. As it turned out I couldn't use all the space (in case of 4.6 G file there was...
6
2906
by: Andy | last post by:
Someone posted this official proposal to create comp.databases.postgresql.general again. He wrote his own charter. As far as I know, he did not consult any of the postgresql groups first. There may be an upcoming vote on this, so please stay informed and read news.newgroups.announce for updates. Also see message <2uu44nF2eodc0U1@uni-berlin.de> for an example of the proponent's temperament.
16
2474
by: Mike Cox | last post by:
He wants to be in the big 8. He would like to be under the comp.databases.* domain and will not to move it to something like postgresql.*. So he seems to agree with what was my original intention, which was to make the current groups proper members of the big 8. I also offered to let him take over the process as he understands gatewaying and the details better than I. I also offered to let him create the next RFD, and hopefully he...
4
4657
by: Joachim Klassen | last post by:
DB2 V8.2 FP10 on Windows I tested the following HADR scenario: - a new tablespace on a new filesytem is created on the primary System - the replay on standby fails because of lacking permissions - the tablespace is backed up on the primary system - tables are created in the new tablespace and data is inserted (and a couple of logs are archived) - Takeover is done by the standby
2
3865
by: parrydb2 | last post by:
Anybody know why db2 heavily affect it's performance by DMS (using file) tablespace creation? During the creation process, almost all db2 activities pending... Besides, the disks where the tablespace located always 100% busy at that time. Platform: AIX 5.3 db2level V8.2 fixpak 12
5
3521
by: mvantzelfde | last post by:
I have a tablespace that is not being used and I want to drop it. When I try to drop the tablespace either via pgAdmin III or an sql command I get the following error: cannot read directory "pg_tblspc/20612": No such file or directory I have tired to manually create those directories in the location listed as the target folder for the tablespace. Error still occurs. The tablespace may have encountered errors during creation. Ideas how I...
0
9962
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9810
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10791
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10889
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10442
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7150
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6029
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4647
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3256
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.