Unix Technical Forum

Can't Create Tablespace On Windows 2003

This is a discussion on Can't Create Tablespace On Windows 2003 within the Pgsql General forums, part of the PostgreSQL category; --> I am running Postgresql 8.1. I can't get the following create statement to work. It failes on Column 39 ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 12:25 PM
Rejean Proulx
 
Posts: n/a
Default Can't Create Tablespace On Windows 2003

I am running Postgresql 8.1. I can't get the following create statement
to work. It failes on Column 39 which is my directory name.

CREATE TABLESPACE xxxxxxxxxx LOCATION "D:\tablespace\data\";

Rejean

pgsql-general@postgresql.org


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 12:25 PM
Tino Wildenhain
 
Posts: n/a
Default Re: Can't Create Tablespace On Windows 2003

Rejean Proulx schrieb:
> I am running Postgresql 8.1. I can't get the following create statement
> to work. It failes on Column 39 which is my directory name.
>
> CREATE TABLESPACE xxxxxxxxxx LOCATION "D:\tablespace\data\";



I'm pretty sure the " " are wrong. Strings are quotet with
' ' instead. You'll need to write 'D:\\tablespace\\data\\'
because \ is a apecial char in strings.

Regards
Tino

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-09-2008, 12:25 PM
Gurjeet Singh
 
Posts: n/a
Default Re: Can't Create Tablespace On Windows 2003

On 11/20/06, Tino Wildenhain <tino@wildenhain.de> wrote:
>
> You'll need to write 'D:\\tablespace\\data\\'
> because \ is a apecial char in strings.
>


Or you can use forward slashes as in:

'D:/tablespace/data/'

Regards,

--
gurjeet[.singh]@EnterpriseDB.com
singh.gurjeet@{ gmail | hotmail | yahoo }.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:36 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com