473,395 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

search_path problem

Hi

I'm trying to set a search path through a connection made by PHP and
failing.

It works in pgsql:

clwcms=> set search_path = myname, funcs, public

clwcms=> select * from fn_usr30_show_section_users(1, 1);
sectionid | personid
-----------+----------
10 | 2
10 | 3
11 | 1
1 | 1
3 | 1
2 | 1
(6 rows)

\df fn_*

Result data type | Schema | Name | Argument data types
-------------------------+--------+-----------------------------+------------------------------------------------------------------------------------
setof sec_sections_users | funcs | fn_usr30_show_section_users | integer, integer
setof sec_users | funcs | fn_usr31_show_users | integer
setof sec_sections | funcs | fn_usr32_show_sections | integer
setof sec_people | funcs | fn_usr33_show_people | integer
I'm now trying to this in php4 and postgres 7.4.3:

1.
SELECT fn_util01_searchpath( DB_SEARCHPATH ) as result;
2.
select * from fn_usr30_show_section_users(1, 1);

I get "ERROR: column "db_searchpath" does not exist".
The logs show:
2004-09-02 12:44:47 [18952] ERROR: 42703: column "db_searchpath" does not exist
LOCATION: transformColumnRef, parse_expr.c:1034

Any help would be much appreciated!

Thanks
Rory
--
Rory Campbell-Lange
<ro**@campbell-lange.net>
<www.campbell-lange.net>

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 23 '05 #1
2 2161
On 02/09/04, Rory Campbell-Lange (ro**@campbell-lange.net) wrote:
I'm trying to set a search path through a connection made by PHP and
failing. I get "ERROR: column "db_searchpath" does not exist".


Ag. My test environment was sending through some garbage. Sorry -- all
working fine now.

Thanks,
Rory

--
Rory Campbell-Lange
<ro**@campbell-lange.net>
<www.campbell-lange.net>

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 23 '05 #2
Rory Campbell-Lange wrote:
Hi

I'm trying to set a search path through a connection made by PHP and
failing.

It works in pgsql:

clwcms=> set search_path = myname, funcs, public I'm now trying to this in php4 and postgres 7.4.3:

1.
SELECT fn_util01_searchpath( DB_SEARCHPATH ) as result;
2.
select * from fn_usr30_show_section_users(1, 1);

I get "ERROR: column "db_searchpath" does not exist".
The logs show:
2004-09-02 12:44:47 [18952] ERROR: 42703: column "db_searchpath" does not exist
LOCATION: transformColumnRef, parse_expr.c:1034


Three questions:
1. What is fn_util01_searchpath()?
2. What is "DB_SEARCHPATH"?
3. Where is your "set search_path..." statement?
--
Richard Huxton
Archonet Ltd

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

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

Nov 23 '05 #3

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

Similar topics

0
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
0
by: Refky Wahib | last post by:
Hi I need Technical Support I finished a Great project using .Net and SQL Server and .Net Mobile Control My Business case is to implement this Program to accept about 1 Million concurrent...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
1
by: Ben Trewern | last post by:
All, There seems to be a bug in pg_dumpall: For one of my dbs I've done: ALTER DATABASE dbname SET search_path = mw, public; If I do a pg_dumpall I get a line like:
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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,...
0
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...
0
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...

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.