Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9141307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:37:40+00:00 2026-06-17T09:37:40+00:00

It is know that SQL Server offers some extensibility mechanisms like user-defined functions, stored

  • 0

It is know that SQL Server offers some extensibility mechanisms like user-defined functions, stored procedures, triggers…

I have C# code that runs in SQL Server 2008 (it is a stored procedure that is deployed in the DBMS using Visual Studio 2008, and then a exec dbo.SP_Analysis 'MyTable','Colum1,Column2',300,0 command is used to get the results in SQL Server 2008) defined as:

using System;
using System.Collections.Generic;
using System.Text;
using System.Security;
using System.Runtime.InteropServices;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;

public partial class StoredProcedures
{              
  [Microsoft.SqlServer.Server.SqlProcedure]
  public static void SP_Analysis(
     SqlString table, [SqlFacet(MaxSize = -1)] SqlString columns,
     int Nocustomers,
     Boolean result)
  {
     String query = "";

     using (SqlConnection conn = new SqlConnection("context connection=true"))
     {
        conn.Open();
        SqlCommand cmd = conn.CreateCommand();
        query = "SELECT " + (String)columns + " FROM " + (String)table + ";";
        cmd.CommandText = query;
        SqlDataReader reader = cmd.ExecuteReader();
        MyObject _myObject = new Object(Nocustomers);
        while (reader.Read())
           _myObject.read(reader);
        reader.Close();        
        conn.Close();
      } //END SqlConnection conn 
  }        
}

class MyObject
{
   int NoCustomers; 
   //some definitions

  public MyObject(int NoCustomers)
  {
     this.NoCustomers = NoCustomers;
     //some stuff
  }

   public void read(SqlDataReader reader)
   {
     Object[] record = new Object[NoCustomers];
     reader.GetValues(record);
     //more stuff
   }
}

It is clear that I am using .NET c# available language and then deploy it to create a stored procedure in SQL Server 2008, via Visual Studio 2008.

Now my question is what is the analog to all this in Postgres?

  1. What language is available to extend the functionality of Postgres?
  2. What is the analog of Visual Studio to have the possibility to deploy a UDF in Postgres?
  3. What is the analog of exec dbo.UDF in Postgres?

I was reading that Postgres uses C language to define UDFs maybe C++
but the others I have no idea…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:37:41+00:00Added an answer on June 17, 2026 at 9:37 am
    1. PL/Python, PL/Perl, PL/Java, PL/TCL, PL/V8 (JavaScript) and C procedures. For most jobs, though, you just use PL/PgSQL, an extended version of SQL for procedures.

    2. There isn’t one, really. PgAdmin-III sort-of. You just execute SQL commands to create functions, or in the case of C procedures, you use a Makefile with PGXS.

    3. Dunno, what does that do in SQL Server? Docs link? If it’s just “call this procedure” then SELECT my_function();.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a stored procedure in SQL server that looks something like this: insert
I know that Sql Server has some handy built-in quarterly stuff, but what about
I know that SQL Server does not have boolean data type and your best
I know that SQL server use memory cache for the all operations by loading
I am using SQL Server for my web application. How will I know that
I have an application using LINQ-to-SQL with SQL Server CE 4. I know that
Yeah I know that SQL Server has got free express editions(2005/2008) But what i
I know that most sql server software allows you to do A Update on
As mentioned in title. I wanna know that does SQL Server can partially execute
I was surprised to know that SQL Server (I tested the 2008 R2 edition,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.