473,899 Members | 4,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where is initdb?

Hello List,

I have installed Postgresql 7.4 on a Suse 9.0 system using apt.
I cannot do this:

/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

Because there is no "/pgsql/bin/initdb" nor /pgsql/bin/ on my system.
Since apt did not create these directories how can I do it manually?
Thanks,
Jerome

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 22 '05 #1
9 8363
Mensaje citado por Jerome Lyles <su******@hawai i.rr.com>:
Hello List,

I have installed Postgresql 7.4 on a Suse 9.0 system using apt.
I cannot do this:

/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

Because there is no "/pgsql/bin/initdb" nor /pgsql/bin/ on my system.
Since apt did not create these directories how can I do it manually?


You don't. Normal rpm packagers put binaries in /usr/bin and not in
/usr/local/pgsql/bin.

Try this:

$ initdb -D /var/lib/pgsql/data

Or, just try to start the database with the init script:

# /etc/init.d/postgresql start

If it's like the one I have here on Fedora, it should run initdb automatically if
the Cluster hasn't been built yet.

--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-------------------------------------------------------
Martín Marqués | Programador, DBA
Centro de Telemática | Administrador
Universidad Nacional
del Litoral
-------------------------------------------------------

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 22 '05 #2
Jerome Lyles wrote:
I have installed Postgresql 7.4 on a Suse 9.0 system using apt.
I cannot do this:

/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data


Just run

/etc/init.d/postgresql start

and it will be taken care of. Read the README files in
/usr/share/doc/packages/postgresql-* to learn about how the packages
are layed out.
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 22 '05 #3
although it will be taken care of, make sure that initdb sets the local
language to C or your string indexes will not be used.. Unless this has
been fixed and en_US works as as well?
On Mon, 2004-01-26 at 13:32, Peter Eisentraut wrote:
Jerome Lyles wrote:
I have installed Postgresql 7.4 on a Suse 9.0 system using apt.
I cannot do this:

/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data


Just run

/etc/init.d/postgresql start

and it will be taken care of. Read the README files in
/usr/share/doc/packages/postgresql-* to learn about how the packages
are layed out.
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

--
Jeremiah Jahn <je******@cs.ea rlham.edu>
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postg resql.org so that your
message can get through to the mailing list cleanly

Nov 22 '05 #4
Mensaje citado por Jeremiah Jahn <je******@cs.ea rlham.edu>:
although it will be taken care of, make sure that initdb sets the local
language to C or your string indexes will not be used.. Unless this has
been fixed and en_US works as as well?


I think that if you really need very fast indexes, the first thing to do is read
the instalation manual and configure very carefully the postgres acount
(envioronment variables, etc).

--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-------------------------------------------------------
Martín Marqués | Programador, DBA
Centro de Telemática | Administrador
Universidad Nacional
del Litoral
-------------------------------------------------------

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 22 '05 #5
I think it's fair to say that out of the box and RPM install should not
result in indexes not being used because the LANG is set to something
other than 'C'. I'm all for reading the manual and tuning later, but
that is something that can't be changed without a complete
dump/initdb/restore. It's just always seemed kind of misleading to me..

-jj-
On Mon, 2004-01-26 at 13:51, Martín Marqués wrote:
Mensaje citado por Jeremiah Jahn <je******@cs.ea rlham.edu>:
although it will be taken care of, make sure that initdb sets the local
language to C or your string indexes will not be used.. Unless this has
been fixed and en_US works as as well?


I think that if you really need very fast indexes, the first thing to do is read
the instalation manual and configure very carefully the postgres acount
(envioronment variables, etc).

--
Jeremiah Jahn <je******@cs.ea rlham.edu>
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 22 '05 #6
Jeremiah Jahn wrote:
although it will be taken care of, make sure that initdb sets the
local language to C or your string indexes will not be used.. Unless
this has been fixed and en_US works as as well?


It has been fixed. Be sure to read the documentation about details.
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postg resql.org

Nov 22 '05 #7
Mensaje citado por Jeremiah Jahn <je******@cs.ea rlham.edu>:
I think it's fair to say that out of the box and RPM install should not
result in indexes not being used because the LANG is set to something
other than 'C'. I'm all for reading the manual and tuning later, but
that is something that can't be changed without a complete
dump/initdb/restore. It's just always seemed kind of misleading to me..


The question is which should be the default? For me it's better to have
LANG=es_AR, just because I will have REAL string ordering in a query like this:

SELECT varfield FROM sometable ORDER BY varfield;

That would work great with 'C' locale if varfield didn't contain caracters like á,
é, í, ó, ú, ñ.

--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-------------------------------------------------------
Martín Marqués | Programador, DBA
Centro de Telemática | Administrador
Universidad Nacional
del Litoral
-------------------------------------------------------

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postg resql.org so that your
message can get through to the mailing list cleanly

Nov 22 '05 #8
How would I check this?
Jerome
On Monday 26 January 2004 09:43 am, Jeremiah Jahn wrote:
although it will be taken care of, make sure that initdb sets the local
language to C or your string indexes will not be used.. Unless this has
been fixed and en_US works as as well?

On Mon, 2004-01-26 at 13:32, Peter Eisentraut wrote:
Jerome Lyles wrote:
I have installed Postgresql 7.4 on a Suse 9.0 system using apt.
I cannot do this:

/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data


Just run

/etc/init.d/postgresql start

and it will be taken care of. Read the README files in
/usr/share/doc/packages/postgresql-* to learn about how the packages
are layed out.
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 22 '05 #9
On Monday 26 January 2004 06:29 pm, Uwe C. Schroeder wrote:
How about

locate initdb
It's there now. It turns out I had to also install postgresql-server.
On Monday 26 January 2004 10:37 am, Jerome Lyles wrote:
Hello List,

I have installed Postgresql 7.4 on a Suse 9.0 system using apt.
I cannot do this:

/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

Because there is no "/pgsql/bin/initdb" nor /pgsql/bin/ on my system.
Since apt did not create these directories how can I do it manually?
Thanks,
Jerome

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


--
UC

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2288
by: supersize me | last post by:
After looking at many of the DBMS choices out there (commercial and open source), I settled on PostgreSQL because of its stablity and feature-set. I'm having a problem getting it to install, however. Its going to be used on a device running Windows XP Embedded, and so far I've had no luck getting it installed in that environment. I can install it with no issues on Windows XP Pro. But when I attempt to install it on Windows Xp Embedded,...
2
3204
by: Tim Farrell | last post by:
I use PostgreSQL as a default database in our solution and with the 7.2 version I was able to tar up the area pointed to by the --prefix build argument and untar to an arbitrary path as part of my product installation and I could initdb the database no problem and get a running database setup completely. With the 7.4 released version I get this failure while running initdb: ERROR: could not access file "$libdir/ascii_and_mic": No such...
2
1946
by: tech tech | last post by:
Hello All, I installed postgresql 7.3.4 on HPUX PA in /usr/local/pgsql and put the libraries in /usr/local/pgsql/lib/LIB_new. During the initialization( initdb), it loads libraries (language) from /usr/local/pgsql/lib. In postgresql version 7.3.1, libraries are not loaded and no such problem during initdb. I had the following problem: $ initdb -D /var/pgsql The files belonging to this database system will be owned by user "postgres".
0
1200
by: Taras V. Panchenko | last post by:
Dear Sirs! Every time I tried to run initdb I get $ initdb The files belonging to this database system will be owned by user "Taras". This user must also own the server process. The database cluster will be initialized with locale C.
1
1904
by: Randy Yates | last post by:
Can't get the postgres server started under Win2000/cygwin. Here's what happens: $ initdb -D /Gauss/rr/data -W The files belonging to this database system will be owned by user "yates". This user must also own the server process. The database cluster will be initialized with locale C. fixing permissions on existing directory /Gauss/rr/data... ok
0
2046
by: Randall Smith | last post by:
I would like to be able to initdb to get a clean database to test backups. Reading the Debian version of the Postgresql README, I see that I should use the --debian-conffile option with initdb. Problem though. I have to run initdb as user postgres, but I need to be root to edit the stuff in /etc. So I can't run initdb as root or postgres. I lose either way. Also, since the configs are symlinked in etc, is there an elegant way to...
8
2163
by: BARTKO, Zoltán | last post by:
Hello, folks, I am trying to install pgsql8 on winxp. I tried first to install "as is" with pginstaller beta2-dev3, no luck, it froze, switched off Nod32, froze a little later, ran through the list of services, switched off anything that seemed to be a firewall, no luck. So I compiled beta3 with mingw, installed, and now initdb keeps telling me this:
1
2115
by: Jerry LeVan | last post by:
I guess the subject says it all, can I install the B5 release to a B4 db without starting from scratch? Jerry ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
6
5585
by: henryhcface | last post by:
i use the comman , initdb in my postgresql as followers initdb henryDB means ,i want to create the database henryDB but wrong .syntax error at or near "initdb" at character 1
0
9997
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
10863
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
10971
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
10494
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
9666
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5887
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4720
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
3317
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.