473,788 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pg_autovacuum (7.4) nss_ldap oddity

I get this in the logs for every database open by pg_autovacuum:

Sep 1 14:02:45 cerberus pg_autovacuum: nss_ldap: could not connect to
any LDAP server as (null) - Can't contact LDAP server

This is produced by the bind_to() call in libnss-ldap. This is invoked
when /etc/nss_switch.conf specifies ldap; what I don't understand yet is
what pg_autovacuum is doing differently from every other application so
as to cause this message.

Oliver Elphick
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #1
2 1374
Oliver Elphick wrote:
I get this in the logs for every database open by pg_autovacuum:

Sep 1 14:02:45 cerberus pg_autovacuum: nss_ldap: could not connect to
any LDAP server as (null) - Can't contact LDAP server

This is produced by the bind_to() call in libnss-ldap. This is invoked
when /etc/nss_switch.conf specifies ldap; what I don't understand yet is
what pg_autovacuum is doing differently from every other application so
as to cause this message.


Good question, I don't know either. All pg_autovacuum does is call the
libpq function to connect to the database. Can you look into this
further? Do you get similar messages when you use psql to connect to a
database?

Matthew

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #2
On Wed, 2004-09-01 at 16:24, Matthew T. O'Connor wrote:
Oliver Elphick wrote:
I get this in the logs for every database open by pg_autovacuum:

Sep 1 14:02:45 cerberus pg_autovacuum: nss_ldap: could not connect to
any LDAP server as (null) - Can't contact LDAP server
.... Can you look into this
further? Do you get similar messages when you use psql to connect to a
database?


Well, something has happened on that machine while I've been away. Now
it isn't happening at all. If it starts again, I'll try to debug some
more.
--
Oliver Elphick ol**@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA 92C8 39E7 280E 3631 3F0E 1EC0 5664 7A2F A543 10EA
=============== =============== ==========
"But God said to him, You fool! This very night your
soul is required of you; and now who will own what you
have prepared? So is the man who lays up treasure for
himself, and is not rich toward God."
Luke 12:20,21
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #3

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

Similar topics

11
1890
by: Adam Kavan | last post by:
I decided to try pg_autovacuum and am having a problem. It never analyzes or vacuums. I looked at the code and had it display printf("%s,%s,%s\n",PQgetvalue(res, j, PQfnumber(res, "n_tup_ins")),PQgetvalue(res, j, PQfnumber(res, "n_tup_upd")),PQgetvalue(res, j, PQfnumber(res, "n_tup_del"))); All of these values are always 0 for all tables irregardless of activity on the tables. Any clue what could be causing this? In postgresql.conf...
5
3276
by: Frank van Vugt | last post by:
Hi, I noticed that when using the single commandline: drop database <name>; create database <name>; this sometimes fails due to a pg_autovacuum process running on the background. When this happens, the error returned is:
0
1140
by: Brian Hirt | last post by:
Hello, I've run across a pretty serious problem with pg_autovacuum. pg_autovacuum looses track of any table that's ever been truncated (possibly other situations too). When i truncate a table it gets a new relfilenode in pg_class. This is a problem because pg_autovacuum assumes pg_class.relfilenode will join to pg_stats_all_tables.relid. pg_stats_all_tables.relid is actallly the oid from pg_class, not the relfilenode. These two...
3
2737
by: Markus Wollny | last post by:
Hi! I haven't found anything in terms of startup- and check-scripts for pg_autovacuum yet; usually I like to have some sort of mechanism to check if some daemon is running and restart it if it isn't. Of course this sort of script shouldn't be too much of a bother for more experienced users; however you might actually find this small checkup-script more or less useful - just save it in /opt/pgsql/bin/ as autovachk, chmod +x and follow...
4
1813
by: David Wheeler | last post by:
4.8-STABLE FreeBSD 4.8-STABLE i386 sahlins# cd postgresql-7.4.2/contrib/pg_autovacuum sahlins# make "../../src/Makefile.global", line 38: Missing dependency operator "../../src/Makefile.global", line 41: Need an operator "../../src/Makefile.global", line 45: Need an operator "../../src/Makefile.global", line 66: Need an operator "../../src/Makefile.global", line 67: Need an operator "../../src/Makefile.global", line 69: Need an...
3
1289
by: Brian Hirt | last post by:
I've having a strange issue with pg_autovacuum. I have a table with about 4 million rows in 20,000 pages. autovacuum likes to vacuum and/or analyze it every 45 minutes or so, but it probably doesn't have more that a few hundred rows changed every few hours. when i run autovacuum with -d3 it says table name: basement_nightly."public"."search_words4" relid: 396238832; relisshared: 0 reltuples: 4; relpages: 20013
2
1236
by: Peter Haworth | last post by:
Is it possible/safe to compile the latest version of pg_autovacuum, and use it with a 7.2.4 postmaster? I know the better solution would be to upgrade everything, but that involves a lot of work which we've managed to put off for a long time already, and autovacuum is pretty much the only feature we really need immediately. -- Peter Haworth pmh@edison.ioppublishing.com "There are two ways of constructing a software design. One way is...
7
1821
by: Thomas F.O'Connell | last post by:
I'm about to try to implement a simple pg_autovacuum script that can be used in conjunction with or integrated entirely with the contrib start-scripts for postgres. I just want to check that what I'm doing has the appropriate sanity checks. The behavior I'm considering is: if pg_ctl status returns a good value then if pg_autovacuum is not running then start pg_autovacuum
5
1718
by: Thomas F.O'Connell | last post by:
I've been using pg_autovacuum on a largish postgres installation successfully for several weeks, now. I know that pg_autovacuum has no facility for monitoring the system to know whether any particular time is a good one for it to do it's thing, but I'm wondering what the occasional episodes of 99.9% CPU usage (as reported by top) are. I keep a pg_autovacuum.log, and when the spikes start, often nothing is written to the log. And what...
0
9656
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
9498
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
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9967
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
8993
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
7517
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
6750
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();...
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
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.