Re: Search machine is ready - Mailing list pgsql-www (2024)

From Joshua D. Drake
Subject Re: Search machine is ready
Date February 14,2006
Msg-id 43F25F16.9040305@commandprompt.com
Whole thread Raw
Inresponseto Re: Search machine is ready ("Magnus Hagander" <mha@sollentuna.net>)
List pgsql-www
>>> None of the other entities providing the project with hosting have>>> gone out of their way to deny us the ability to control the>> services>>> we provide,>> I am not going out of my way. I am not sure why you have such>> a problem with this.>>>> 1. This is the way that Command Prompt, Inc. does hosting for>> all people that it hosts. Nobody gets root access.>> Really? For "server hosting" as well, or do you just do "web hosting"?Yes Really. Even for dedicated machines (which is majority of ourhosting). Nobody gets root access.> AFAIK, you need root to restart apache, just as an example. (So it can> bind to port 80). Say after a recompile because you needed to tweak a> module. Sure, you can set up sudo for each individual command, but that> means you have to know everything ahead of time.Well I would hope that you would know everything ahead of time. Ofcourse nobody is perfect but if we actually document this machine weshouldn't have any problems. We could even (and I am happy to do this)set up a Trac for the machine so we know what the heck is going on with it.Actually a Trac for all of pgsql-www might be a pretty good idea.>>> it works is in any way a good thing.>> What level 1 support tech would this be? I don't have any>> level 1 support techs. Remember, we are not a hosting company.>> Whatever people you'd page in the middle of the night if things go down> :-) Or is that you all the time?It isn't always me, but it is never a tier 1 and if we do whatwe are supposed to do :) this will be documented and wouldn't be an issue.>> I am not trying to be difficult here but all I see is, "Well>> we like to do things as root and since this is only a>> community machine you should let us.">> That's not really so. Maybe there weren't enough details in the original> mail. We do beleive there is a *reason* for it. See above for one> example.Well I again refer back to using sudo.>> I on the other hand am trying to bring a certain level of>> stability and quality to the infrastructure. That requires a>> level of discipline which means we use things like sudo, acls>> and group rights. We don't use root.>> I do beleive we'd be fine without root as long as we could do all the> things required - it's not root in the absolute that's needed. This does> include recompiling and restarting "line of business" apps like apache.> (But not necessariliy things like changing system libs or kernel - I'm> fine with some on-site tech dealing with that)Well I would question the need to recompile apache (that is what apxs isfor) but I get your point.If it really comes do to you "needing" to recompile apache then we cando what we do for the buildfarm which is proxy to a private apacheinstance that is completely controlled via userspace.>> You will need to configure apache... I will make sure you can>> do so via included confs.>> See above - config not enough, recompile/replace needed. For> flexibility. (Needed is always a relative matter of course, but it would> certainly make things a hell of a lot easier)A lot of this argument seems to come down to making sure things areavailable in general. I am one of the most available guys when it comesto the community. I am not hard to find ;). If you need something thatisn't there, we can make sure it happens.> Well as said above, we can set everything up with sudo. But that cuts> down flexibility quite a bit, since every time you need to do something> "outside the box", you're stuck.Not stuck, just need to plan :). Again, if we need something outside thebox we can make sure that happens.> But in general, if you're scared of the people maintaining the other> community servers, then perhaps there is a bigger problem...It isn't an issue of being scared. It is an issue of liability,security, and insuring a quality of service. The root user is a footgun. I would prefer you all keep your toes :)> For core-os, absolutely. For LOB, we've learned from the stuff we have> on the other machines that building them from source is more or less> required. Using the pre-packaged ones isn't flexible enough when it> comes to which modules are loaded and not.Well we are getting a little semantic here, and I would actually love tohave this discussion on a different thread because my experience isdifferent. (there are exceptions of course)> And assuming you test things properly (say on a different port) before> you do it, you can do most upgrades with sub-second downtime, so they> can be done without scheduling a particular service window. Some things> take longer, and need to be scheduled.It should still be scheduled so people know it is happening "just incase" :)Joshua D. Drake>>> //Magnus--The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564PostgreSQL Replication, Consulting, Custom Development, 24x7 supportManaged Services, Shared and Dedicated HostingCo-Authors: plPHP, plPerlNG - http://www.commandprompt.com/

pgsql-www by date:

Previous

From:"Magnus Hagander"
Date:
Subject:Re: Search machine is ready

Next

From:Dave Page
Date:
Subject:Re: Search machine is ready

By continuing to browse this website, you agree to the use of cookies. Go to Privacy Policy.

Re: Search machine is ready - Mailing list pgsql-www (2024)

FAQs

How do I stop Pgsql server? ›

A Postgres server can be stopped using the “net stop” command, the “pg_ctl” utility, or the “services” manager.

How to check whether the PostgreSQL DBMS server is running on your machine? ›

basically just type "systemctl status postgresql-xx" where xx is the version of your PostgreSQL instance. ex: systemctl status posgresql-10.

How to check list of database in PostgreSQL? ›

To view all of the defined databases on the server you can use the \list meta-command or its shortcut \l .

How to check if Postgres is ready? ›

pg_isready returns 0 to the shell if the server is accepting connections normally, 1 if the server is rejecting connections (for example during startup), 2 if there was no response to the connection attempt, and 3 if no attempt was made (for example due to invalid parameters).

How do I close all connections in Pgsql? ›

Dropping All Active Connections to a PostgreSQL Database

1 SELECT pg_terminate_backend(pid) 2 FROM pg_stat_activity 3 WHERE datname = '<TARGET_DB_NAME>' 4 AND leader_pid IS NULL; Replace <TARGET_DB_NAME> with the name of the database you want to close sessions for.

How do I quit Pgsql? ›

The meta-command for exiting psql is \q .

How to check current running process in PostgreSQL? ›

PostgreSQL provides a system view named pg_stat_activity that retrieves information about the currently running queries and active sessions on the database server. It returns a list of currently active queries in Postgres, which help us monitor and analyze the workload and performance of a database.

How do I know how many databases are running on my server? ›

To get a list of all databases in the SQL server use the command: SELECT * FROM sys. databases; This command can also be modified to only look at system databases or user databases.

How to check if a Postgres database exists? ›

The -lqt option is used to list all databases in a quiet, tabular format, and the cut and grep commands are used to filter the output and check if the specified database exists.

How to search database in PostgreSQL? ›

When performing a full-text searches on a PostgreSQL database, you must implement the to_tsvector() and to_tsquery() functions together with a match operator @@. The match operator returns a boolean value (either t or f) when you run a keyword search (tsquery) against a tsvector document.

What is the command to check list of tables in Postgres? ›

First, choose ( \c ) the database to work with, then display ( \d ) all its tables ( \t ). psql db -U postgres; You can also use the command \d in psql, instead of \dt , to show all tables, views, sequences, roles, and other database objects.

How to connect to psql from terminal? ›

Username [postgres]:

The default username for postgres is postgres. (If you are using Advanced Server it is enterprisedb.) On a Mac or Windows, you are able to connect to the default instance by simply hitting enter at the shell or command prompt when trying to run psql and keying in the password.

How to check Pgsql version in Linux? ›

Open the SQL shell. Connect to your PostgreSQL database server. Type this command: # SELECT version(); The output will display the version of your installations of PostgreSQL.

How to check procedure status in PostgreSQL? ›

To get the list of all stored procedures in a database, the “\df” command, “pg_proc”, catalog, and “information_schema. routines” view are used in Postgres. All these approaches retrieve the list of all the user-defined functions and stored procedures.

How to check connection status in PostgreSQL? ›

The status of the connection can be checked using the function PQstatus . Returns the server IP address of the active connection. This can be the address that a host name resolved to, or an IP address provided through the hostaddr parameter.

How to check the status of a table in PostgreSQL? ›

Use the ANALYZE command to collect statistics about a database, a table or a specific table column. The PostgreSQL ANALYZE command collects table statistics which support generation of efficient query execution plans by the query planner.

Top Articles
Latest Posts
Article information

Author: Tyson Zemlak

Last Updated:

Views: 5899

Rating: 4.2 / 5 (43 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Tyson Zemlak

Birthday: 1992-03-17

Address: Apt. 662 96191 Quigley Dam, Kubview, MA 42013

Phone: +441678032891

Job: Community-Services Orchestrator

Hobby: Coffee roasting, Calligraphy, Metalworking, Fashion, Vehicle restoration, Shopping, Photography

Introduction: My name is Tyson Zemlak, I am a excited, light, sparkling, super, open, fair, magnificent person who loves writing and wants to share my knowledge and understanding with you.